2010-04-01 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs0411-12.cs
bloba03e2fb900959211873c0cba984052a2e0a58d37
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
4 using System;
6 public class Foo<T>
8 public void DoSomething<U> (Func<U, T> valueExpression) { }
11 public class Bar
13 protected void DoAnything<T, U> (U value)
15 new Foo<U> ().DoSomething (value);