New test.
authorMartin Baulig <martin@novell.com>
Sat, 20 Nov 2004 16:35:12 +0000 (16:35 -0000)
committerMartin Baulig <martin@novell.com>
Sat, 20 Nov 2004 16:35:12 +0000 (16:35 -0000)
svn path=/trunk/mcs/; revision=36343

mcs/tests/Makefile
mcs/tests/gen-103.cs [new file with mode: 0644]

index d99607a58516ed5b6bfba6e502aeb4dc5c08f3db..e88f622e1633818fdb3afb4fa98e50043946f198 100644 (file)
@@ -101,7 +101,7 @@ TEST_SOURCES_net_2_0 = \
        gen-71  gen-72  gen-73  gen-74  gen-75  gen-76  gen-77  gen-78  gen-79  gen-80  \
        gen-81  gen-82  gen-83  gen-84  gen-85  gen-86  gen-87  gen-88  gen-89  gen-90  \
        gen-91  gen-92  gen-93  gen-94  gen-95  gen-96  gen-97                  gen-100 \
-       gen-101 gen-102
+       gen-101 gen-102 gen-103
 
 TEST_EXCLUDES_net_2_0 =
 
diff --git a/mcs/tests/gen-103.cs b/mcs/tests/gen-103.cs
new file mode 100644 (file)
index 0000000..71993f0
--- /dev/null
@@ -0,0 +1,27 @@
+public interface IFoo<T>
+{ }
+
+public class Foo : IFoo<string>
+{ }
+
+public class Hello
+{
+       public void World<U> (U u, IFoo<U> foo)
+       { }
+
+       public void World<V> (IFoo<V> foo)
+       { }
+
+       public void Test (Foo foo)
+       {
+               World ("Canada", foo);
+               World (foo);
+       }
+}
+
+class X
+{
+       static void Main ()
+       {
+       }
+}