New test.
authorMartin Baulig <martin@novell.com>
Thu, 7 Jul 2005 17:51:39 +0000 (17:51 -0000)
committerMartin Baulig <martin@novell.com>
Thu, 7 Jul 2005 17:51:39 +0000 (17:51 -0000)
svn path=/trunk/mcs/; revision=47058

mcs/tests/gtest-187.cs [new file with mode: 0755]

diff --git a/mcs/tests/gtest-187.cs b/mcs/tests/gtest-187.cs
new file mode 100755 (executable)
index 0000000..607b171
--- /dev/null
@@ -0,0 +1,24 @@
+public class Foo<T> where T:Foo<T>
+{
+  public T n;
+
+  public T next()
+  {
+    return n;
+  }
+}
+public class Goo : Foo<Goo>
+{
+  public int x;
+}
+public class Test
+{
+  public static void Main()
+  {
+    Goo x = new Goo();
+    
+    x=x.next();
+  }
+}