blob: a03e2fb900959211873c0cba984052a2e0a58d37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// 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
// Line: 15
using System;
public class Foo<T>
{
public void DoSomething<U> (Func<U, T> valueExpression) { }
}
public class Bar
{
protected void DoAnything<T, U> (U value)
{
new Foo<U> ().DoSomething (value);
}
}
|