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>2010-11-12 12:36:20 +0300
committerMarek Safar <marek.safar@gmail.com>2010-11-12 13:32:40 +0300
commita45c289ac577086a552b44b236f7a29572014db6 (patch)
treeb7d439a2c085bf6bd99257dd39c349baf585f8e3 /mcs/tests/gtest-549.cs
parentd53c11003dac0dc2a3cd52bae31c01a025e9548b (diff)
Inflate nested non-generic interfaces inside generic type
Diffstat (limited to 'mcs/tests/gtest-549.cs')
-rw-r--r--mcs/tests/gtest-549.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/mcs/tests/gtest-549.cs b/mcs/tests/gtest-549.cs
new file mode 100644
index 00000000000..d732bc5bd6e
--- /dev/null
+++ b/mcs/tests/gtest-549.cs
@@ -0,0 +1,36 @@
+class C<T>
+{
+ public interface IA
+ {
+ void MA (T arg);
+ }
+
+ public interface IB : IA
+ {
+ void MB (T arg);
+ }
+}
+
+class D : C<int>
+{
+ public class Impl : IB
+ {
+ public void MA (int arg)
+ {
+ }
+
+ public void MB (int arg)
+ {
+ }
+ }
+}
+
+class Test
+{
+ public static void Main ()
+ {
+ C<int>.IB arg = new D.Impl ();
+ arg.MA (1);
+ arg.MB (1);
+ }
+} \ No newline at end of file