Merge pull request #2314 from lambdageek/dev/local-handles
[mono-project.git] / mcs / errors / cs0202.cs
blobbd17dd913025f08807aad9896d5794a9a1fdaff9
1 // CS0202: foreach statement requires that the return type `Foo.E[]' of `Foo.P.GetEnumerator()' must have a suitable public MoveNext method and public Current property
2 // Line: 18
4 public class Foo
6 public class E {}
8 public class P
10 public E[] GetEnumerator ()
12 return null;
16 public static void Main ()
18 P o = new P ();
19 foreach (P p in o)