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:
authorMarek Safar <marek.safar@gmail.com>2011-08-30 23:52:54 +0400
committerMarek Safar <marek.safar@gmail.com>2011-08-30 23:54:49 +0400
commitfc786a799617457fcac5e25caa8fb364a6f4677c (patch)
tree4f6de40a80c8c3037674ffbf3d08e977b840d6c0 /mcs/tests/gtest-561.cs
parent1ec37e34b76cb474777e6640fc87be227a005675 (diff)
Close defined interface on imported type parameters before importing base class. Fixes #495
Diffstat (limited to 'mcs/tests/gtest-561.cs')
-rw-r--r--mcs/tests/gtest-561.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/tests/gtest-561.cs b/mcs/tests/gtest-561.cs
new file mode 100644
index 00000000000..5e601761df7
--- /dev/null
+++ b/mcs/tests/gtest-561.cs
@@ -0,0 +1,15 @@
+// Compiler options: -r:gtest-561-lib.dll
+
+using System.Collections.Generic;
+
+class C : A, I
+{
+ public void Foo<T> (List<T> arg) where T : A
+ {
+ }
+
+ public static void Main ()
+ {
+ new C ().Foo(new List<A> ());
+ }
+} \ No newline at end of file