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>2013-01-11 17:09:03 +0400
committerMarek Safar <marek.safar@gmail.com>2013-01-14 14:17:22 +0400
commitc255f2eb0f54e2ec4f5a739168c5f0097e8e59eb (patch)
tree4909e2a2aedd853731ee27eb7dee8bbcae8fe9ad /mcs/tests/gtest-572.cs
parentd8fac80b4756d1efbff2189327a2dec51cc06373 (diff)
Do expansion of generic interfaces members without recursion
Diffstat (limited to 'mcs/tests/gtest-572.cs')
-rw-r--r--mcs/tests/gtest-572.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcs/tests/gtest-572.cs b/mcs/tests/gtest-572.cs
new file mode 100644
index 00000000000..ec043ca7be6
--- /dev/null
+++ b/mcs/tests/gtest-572.cs
@@ -0,0 +1,32 @@
+using System.Collections.Generic;
+
+interface IC<T> : IB<T>, IEnumerable<T>
+{
+}
+
+interface IB<V> : IA<V>
+{
+}
+
+interface IA<W> : IEnumerable<W>
+{
+}
+
+class C : IC<short>
+{
+ public IEnumerator<short> GetEnumerator ()
+ {
+ return null;
+ }
+
+ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator ()
+ {
+ throw new System.NotImplementedException ();
+ }
+
+ public static void Main ()
+ {
+ IC<short> ic = new C ();
+ var m2 = ic.GetEnumerator ();
+ }
+} \ No newline at end of file