diff options
author | Martin Baulig <martin@novell.com> | 2004-11-20 19:28:50 +0300 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2004-11-20 19:28:50 +0300 |
commit | b6788a9e9e0133b4e601964e6196228e7bdc922a (patch) | |
tree | c35d69c5fd2a6c696f8640249cac6c356643f8ab /mcs/errors/gcs0411-5.cs | |
parent | c1344cc1b47158310cf8fc14c15ddea1992abce2 (diff) |
New tests.
svn path=/trunk/mcs/; revision=36341
Diffstat (limited to 'mcs/errors/gcs0411-5.cs')
-rw-r--r-- | mcs/errors/gcs0411-5.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mcs/errors/gcs0411-5.cs b/mcs/errors/gcs0411-5.cs new file mode 100644 index 00000000000..a23c467394e --- /dev/null +++ b/mcs/errors/gcs0411-5.cs @@ -0,0 +1,25 @@ +// CS0411: The type arguments for method `World' cannot be infered from the usage. Try specifying the type arguments explicitly. +// Line: 16 +public interface IFoo<T> +{ } + +public class Foo : IFoo<int>, IFoo<string> +{ } + +public class Hello +{ + public void World<U> (IFoo<U> foo) + { } + + public void Test (Foo foo) + { + World (foo); + } +} + +class X +{ + static void Main () + { + } +} |