Replace SIZEOF_REGISTER with sizeof(mgreg_t) for consistency with sizeof(gpointer)
[mono.git] / mcs / errors / gcs0202.cs
1 // CS0202: foreach statement requires that the return type `System.Collections.Generic.IEnumerable<string>' of `Test.GetEnumerator()' must have a suitable public MoveNext method and public Current property
2 // Line: 10
3 using System;
4 using System.Collections.Generic;
5
6 class Test {
7         static void Main ()
8         {
9                 Test obj = new Test ();
10                 foreach (string s in obj) {
11                 }
12         }
13
14         public IEnumerable<string> GetEnumerator ()
15         {
16                 return null;
17         }
18 }