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

test-201.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f9fa755de08ffbe88cf977526a2939883c108898 (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
public class Parent
{
	public Parent () { }
	private Collide Collide;
}

public class Child : Parent
{
	public class Nested
	{
		public readonly Collide Test;

		public Nested ()
		{
			Test = Collide.Die;
		}
	}
}

public class Collide
{
	public Collide (int a)
	{
		this.A = a;
	}

	public readonly int A;
	public static readonly Collide Die = new Collide (5);

	public static int Main ()
	{
		Child.Nested nested = new Child.Nested ();
		if (nested.Test.A != 5)
			return 1;
		return 0;
	}
}