[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / tests / test-iter-20.cs
1 //
2 // This was a bug which was triggered because I removed a routine
3 // inadvertently.   The routine was restored, and now the scopes
4 // are initialized
5 //
6 using System;
7 using System.Collections;
8 using System.Reflection;
9
10 public class CustomDict {
11         ArrayList data;
12
13         public CustomDict() { 
14                 foreach (object o in this)
15                         Console.WriteLine (o);
16         }
17
18         public IEnumerator GetEnumerator() {
19                 if (data != null)
20                         yield return 1;
21         }
22 }
23
24 public class Tests
25 {
26
27         public static void Main () {
28                 new CustomDict ();
29         }
30 }