2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / gcs0411-5.cs
blobcdcf4056d8eae35267812a516eaf4461a8a40a8d
1 // CS0411: The type arguments for method `Hello.World<U>(IFoo<U>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
2 // Line: 16
3 public interface IFoo<T>
4 { }
6 public class Foo : IFoo<int>, IFoo<string>
7 { }
9 public class Hello
11 public void World<U> (IFoo<U> foo)
12 { }
14 public void Test (Foo foo)
16 World (foo);
20 class X
22 static void Main ()