Add new tests
authorMiguel de Icaza <miguel@gnome.org>
Tue, 4 Oct 2005 14:19:23 +0000 (14:19 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Tue, 4 Oct 2005 14:19:23 +0000 (14:19 -0000)
svn path=/trunk/mcs/; revision=51173

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

diff --git a/mcs/tests/gtest-208.cs b/mcs/tests/gtest-208.cs
new file mode 100644 (file)
index 0000000..e827dc8
--- /dev/null
@@ -0,0 +1,16 @@
+public class SomeClass {
+}
+
+public class Foo<T> where T : class {
+       public T Do (object o) { return o as T; }
+}
+
+class Driver {
+       static void Main ()
+       {
+               Foo<SomeClass> f = new Foo<SomeClass> ();
+               f.Do ("something");
+       }
+}
+
+