Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnome.org>2005-10-04 18:19:23 +0400
committerMiguel de Icaza <miguel@gnome.org>2005-10-04 18:19:23 +0400
commitbfd528dc462891010952400bd3997b5d2e3d2935 (patch)
tree64ee9c820e989c08b9a3503aca95b47ac7fbd5e9 /mcs/tests/gtest-208.cs
parent21499d85f12d804405df06a0a02812fc70f892f4 (diff)
Add new tests
svn path=/trunk/mcs/; revision=51173
Diffstat (limited to 'mcs/tests/gtest-208.cs')
-rw-r--r--mcs/tests/gtest-208.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/mcs/tests/gtest-208.cs b/mcs/tests/gtest-208.cs
new file mode 100644
index 00000000000..e827dc8efd7
--- /dev/null
+++ b/mcs/tests/gtest-208.cs
@@ -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");
+ }
+}
+
+