2005-09-27 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Tue, 27 Sep 2005 15:42:02 +0000 (15:42 -0000)
committerMartin Baulig <martin@novell.com>
Tue, 27 Sep 2005 15:42:02 +0000 (15:42 -0000)
* gtest-203.cs: New test for #75584.

svn path=/trunk/mcs/; revision=50871

mcs/tests/ChangeLog
mcs/tests/gtest-203.cs [new file with mode: 0644]

index a42053f182eeb577fcc027c2b42c825d3c5b560d..6edf1e7bcc889c6702421152988c28729cc8f497 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-27  Martin Baulig  <martin@ximian.com>
+
+       * gtest-203.cs: New test for #75584.
+
 2005-09-26  Martin Baulig  <martin@ximian.com>
 
        * gtest-202.cs: New test from #75681.
diff --git a/mcs/tests/gtest-203.cs b/mcs/tests/gtest-203.cs
new file mode 100644 (file)
index 0000000..fad76b1
--- /dev/null
@@ -0,0 +1,28 @@
+class C<X,Y> {
+  class Q<A,B> {
+    public void apply (C<X,Y> t)
+        {
+          t.bar<A,B>();
+        }
+  }
+
+  public void foo<A,B> ()
+  {
+    Q<A,B> q = new Q<A,B>();
+        q.apply(this);
+  }
+
+  public void bar<A,B> ()
+  {
+    System.Console.WriteLine ("'{0} {1} {2} {3}'",
+typeof(X),typeof(Y),typeof(A),typeof(B));
+  }
+}
+
+class X {
+  public static void Main () {
+    C<int,string> c = new C<int,string>();
+        c.foo<float,string> ();
+  }
+}
+