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: 0ace0dc57f051a2b5a9e5db3595ea76a3a2676ba (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 ();
	}
	
	static void Main ()
	{
		foreach (object o in X ())
			;
	}
}