Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-iter-20.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 42b6783c7ef889c4732c9533dd580584b69deb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// This was a bug which was triggered because I removed a routine
// inadvertently.   The routine was restored, and now the scopes
// are initialized
//
using System;
using System.Collections;
using System.Reflection;

public class CustomDict {
	ArrayList data;

	public CustomDict() { 
		foreach (object o in this)
			Console.WriteLine (o);
	}

	public IEnumerator GetEnumerator() {
		if (data != null)
			yield return 1;
	}
}

public class Tests
{

	public static void Main () {
		new CustomDict ();
	}
}