New test.
authorMartin Baulig <martin@novell.com>
Wed, 4 Oct 2006 20:51:03 +0000 (20:51 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 4 Oct 2006 20:51:03 +0000 (20:51 -0000)
svn path=/trunk/mcs/; revision=66263

mcs/tests/gtest-anon-13.cs [new file with mode: 0644]

diff --git a/mcs/tests/gtest-anon-13.cs b/mcs/tests/gtest-anon-13.cs
new file mode 100644 (file)
index 0000000..6bd016b
--- /dev/null
@@ -0,0 +1,30 @@
+using System;
+
+public delegate void Foo ();
+
+public class Test<R>
+{
+       public void World<S,T> (S s, T t)
+               where S : X
+               where T : S
+       { }
+
+       public void Hello<U,V> (U u, V v)
+               where U : X
+               where V : U
+       {
+               Foo foo = delegate {
+                       World (u, v);
+               };
+       }
+}
+
+public class X
+{
+       public static void Main ()
+       {
+               X x = new X ();
+               Test<int> test = new Test<int> ();
+               test.Hello (x, x);
+       }
+}