[runtime] Avoid indirection when building MonoContext on darwin
[mono.git] / mcs / tests / test-791.cs
1 using System;
2 using System.Collections;
3
4 namespace testApp
5 {
6         public interface IA
7         {
8                 bool GetEnumerator ();
9         }
10
11         public interface IC : IA, IEnumerable
12         {
13         }
14
15         public class TestApp : IC
16         {
17                 public static int Main ()
18                 {
19                         IC ic = new TestApp ();
20                         foreach (int v in ic) {
21                         }
22
23                         return 0;
24                 }
25
26                 #region IA Members
27
28                 public bool GetEnumerator ()
29                 {
30                         throw new NotImplementedException ();
31                 }
32
33                 #endregion
34
35                 #region IEnumerable Members
36
37                 IEnumerator IEnumerable.GetEnumerator ()
38                 {
39                         return new int[0].GetEnumerator ();
40                 }
41
42                 #endregion
43         }
44 }
45