* gen-57.cs: New test.
svn path=/trunk/mcs/; revision=29432
+2004-06-13 Martin Baulig <martin@ximian.com>
+
+ * gen-57.cs: New test.
+
2004-06-11 Martin Baulig <martin@ximian.com>
* gen-56.cs: New test from #58307.
--- /dev/null
+using System;
+
+interface IHello<T>
+{
+ void Print (T t);
+}
+
+interface Foo
+{
+ IHello<U> Test<U> ();
+}
+
+class Hello<T> : IHello<T>, Foo
+{
+ public void Print (T t)
+ {
+ Console.WriteLine ("Hello: {0}", t);
+ }
+
+ public IHello<U> Test<U> ()
+ {
+ return new Hello<U> ();
+ }
+}
+
+class X
+{
+ static void Main ()
+ {
+ Hello<int> hello = new Hello<int> ();
+ hello.Print (5);
+ hello.Test<float> ().Print (3.14F);
+
+ IHello<string> foo = hello.Test<string> ();
+ foo.Print ("World");
+ }
+}