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:
authorMartin Baulig <martin@novell.com>2005-10-25 16:37:06 +0400
committerMartin Baulig <martin@novell.com>2005-10-25 16:37:06 +0400
commit3adae4f78922f6e8b6db3a1a26036f130b8d2d53 (patch)
tree467fb267ff3a43660a8791bf5484bc3a294524b6 /mcs/tests/gtest-221.cs
parentae76eaee67091e605012db817bf980591f0019a0 (diff)
New test.
svn path=/trunk/mcs/; revision=52179
Diffstat (limited to 'mcs/tests/gtest-221.cs')
-rwxr-xr-xmcs/tests/gtest-221.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/tests/gtest-221.cs b/mcs/tests/gtest-221.cs
new file mode 100755
index 00000000000..44186740e7c
--- /dev/null
+++ b/mcs/tests/gtest-221.cs
@@ -0,0 +1,22 @@
+interface IFoo {}
+interface IBar {}
+
+class C1<IFoo> where IFoo : IBar
+{
+}
+
+abstract class C2
+{
+ public abstract C1<T> Hoge<T> (C1<T> c) where T : IBar;
+}
+
+class C3 : C2
+{
+ public override C1<T> Hoge<T> (C1<T> c) { return null; }
+}
+
+class X
+{
+ static void Main ()
+ { }
+}