a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
18 lines
384 B
C#
18 lines
384 B
C#
// 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);
|
|
}
|
|
}
|