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

test-791.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2e5ccca3328e9ff51945cf169b573b0e8cc83a8e (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections;

namespace testApp
{
	public interface IA
	{
		bool GetEnumerator ();
	}

	public interface IC : IA, IEnumerable
	{
	}

	public class TestApp : IC
	{
		public static int Main ()
		{
			IC ic = new TestApp ();
			foreach (int v in ic) {
			}

			return 0;
		}

		#region IA Members

		public bool GetEnumerator ()
		{
			throw new NotImplementedException ();
		}

		#endregion

		#region IEnumerable Members

		IEnumerator IEnumerable.GetEnumerator ()
		{
			return new int[0].GetEnumerator ();
		}

		#endregion
	}
}