[sdks] Fix README.md
[mono-project.git] / mcs / tests / gtest-617.cs
blobda3b3c654adca8bb3d629114ba3e086430984e84
1 using System;
2 using System.Collections.Generic;
4 class Program
6 static void Main()
8 foreach (string x in new B ()) {
13 class A
15 public IEnumerator<string> GetEnumerator ()
17 var s = new List<string>();
18 s.Add("1");
19 return s.GetEnumerator();
23 class B : A
25 public IEnumerator<int> GetEnumerator (int[] x = null)
27 throw new NotImplementedException ();