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

gtest-442.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d894a726f485519f1122347e7bd89411f269fa77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public abstract class NonGenericBase
{
	public abstract int this[int i] { get; }
}

public abstract class GenericBase<T> : NonGenericBase
	where T : GenericBase<T>
{
	T Instance { get { return default (T); } }

	public void Foo ()
	{
		int i = Instance[10];
	}
}

public class EntryPoint
{
	public static void Main () { }
}