Merge pull request #3766 from BrzVlad/feature-default-conc
[mono.git] / mcs / errors / cs0411-12.cs
1 // CS0411: The type arguments for method `Foo<U>.DoSomething<U>(System.Func<U,U>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
2 // Line: 15
3
4 using System;
5
6 public class Foo<T>
7 {
8         public void DoSomething<U> (Func<U, T> valueExpression) { }
9 }
10
11 public class Bar
12 {
13         protected void DoAnything<T, U> (U value)
14         {
15                 new Foo<U> ().DoSomething (value);
16         }
17 }