[System.Data] Try to fix random DataViewTest.DefaultColumnNameAddListChangedTest...
[mono-project.git] / mcs / tests / gtest-302.cs
blobfd3f6f93bb2fcc6a634979e16242cd9c49e7348d
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 public static void Main ()
16 ITest foo = new Test ();
17 foreach (int i in foo)
18 Console.WriteLine (i);