2007-03-19 Chris Toshok <toshok@ximian.com>
[mono-project.git] / mcs / errors / gcs0411-6.cs
blob9a137f1d17f05f39897c2635da4b2e08c94aa64d
1 // CS0411: The type arguments for method `World' 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> (U u, IFoo<U> foo)
12 { }
14 public void Test (Foo foo)
16 World ("Canada", foo);
20 class X
22 static void Main ()