Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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);
}
}