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

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

class T {
	struct C : IEnumerable {
		public IEnumerator GetEnumerator ()
		{
			return new ArrayList ().GetEnumerator (); 
		}
	}
	
	static C X ()
	{
		return new C ();
	}
	
	public static void Main ()
	{
		foreach (object o in X ())
			;
	}
}