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

test-563.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 30fd2ed05184eeac93af9c1c269c312bb0b51372 (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
// Compiler options: -warn:4 -warnaserror

using System;
using System.Collections;

public class Test
{
	internal object TestMethod (TestCollection t)
	{
		foreach (object x in t)
		{
			return x;
		}
		return null;
	}

	public static void Main ()
	{
	}
}

interface ITestCollection : IEnumerable
{
	new IEnumerator GetEnumerator ();
}

interface TestCollection : ITestCollection
{
}