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

gtest-541.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1984d873cbc416e8971231c0797b0863d751649d (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
public class Foo
{
}

public class Top<S> where S : Foo
{
	public class Base<T> where T : S
	{
		public class Derived<U> where U : T
		{
			public void Test ()
			{
			}
		}
	}
}

public class Test
{
	public static int Main ()
	{
		Top<Foo>.Base<Foo>.Derived<Foo> d = new Top<Foo>.Base<Foo>.Derived<Foo> ();
		d.Test ();
		return 0;
	}
}