diff options
author | Marek Safar <marek.safar@gmail.com> | 2013-01-11 17:09:03 +0400 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2013-01-14 14:17:22 +0400 |
commit | c255f2eb0f54e2ec4f5a739168c5f0097e8e59eb (patch) | |
tree | 4909e2a2aedd853731ee27eb7dee8bbcae8fe9ad /mcs/tests/gtest-572.cs | |
parent | d8fac80b4756d1efbff2189327a2dec51cc06373 (diff) |
Do expansion of generic interfaces members without recursion
Diffstat (limited to 'mcs/tests/gtest-572.cs')
-rw-r--r-- | mcs/tests/gtest-572.cs | 32 |
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 |