projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21499d8
)
Add new tests
author
Miguel de Icaza
<miguel@gnome.org>
Tue, 4 Oct 2005 14:19:23 +0000
(14:19 -0000)
committer
Miguel 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]
patch
|
blob
diff --git a/mcs/tests/gtest-208.cs
b/mcs/tests/gtest-208.cs
new file mode 100644
(file)
index 0000000..
e827dc8
--- /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");
+ }
+}
+
+