[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / errors / cs1579-3.cs
bloba99e403f42619b630f2da17462a522f445bd269c
1 // CS1579: foreach statement cannot operate on variables of type `C' because it does not contain a definition for `GetEnumerator' or is inaccessible
2 // Line: 37
4 using System;
6 public class Enumerator
8 public bool MoveNext ()
10 return false;
13 public int Current { get; set; }
17 public class Base
19 public Enumerator GetEnumerator ()
21 return new Enumerator ();
25 public class C : Base
27 new internal Enumerator GetEnumerator ()
29 return new Enumerator ();
33 class Test
35 public static void Main ()
37 foreach (var e in new C ())
38 Console.WriteLine (e);