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

test-247.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bba0e071ffa7de08fa86604f88f8ad3538ddc3bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.Collections;

struct Blah : IEnumerable {
	IEnumerator IEnumerable.GetEnumerator () {
		return new ArrayList ().GetEnumerator ();
	}
}

class B  {
	public static void Main () {
		foreach (object o in new Blah ())
			;
	}
}