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

gtest-480.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 737e0e07d0ab0aa5e86a3b8332f6ed0553d6ce3a (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.Generic;

interface I<T> : ICollection<T>, IEnumerable<T>
{
}

class C
{
	void Foo ()
	{
		I<object> o = null;
		foreach (var v in o)
			Console.WriteLine (v);
	}
	
	public static void Main ()
	{
		IList<int> list = new List<int> { 1, 3 };
		var g = list.GetEnumerator ();
	}
}