dlr bug
[mcs.git] / tests / gtest-302.cs
blobecf70bd6d4ea1b626e5841616836ba35c0c101e8
1 using System;
2 using System.Collections;
3 using System.Collections.Generic;
5 interface ITest : IEnumerable<int> {
8 class Test : ITest {
9 IEnumerator IEnumerable.GetEnumerator () { throw new Exception (); }
10 IEnumerator<int> IEnumerable<int>.GetEnumerator () { yield break; }
13 class M {
14 static void Main ()
16 ITest foo = new Test ();
17 foreach (int i in foo)
18 Console.WriteLine (i);