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

test-832.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a07aefb8998a2d9f858af6b49ff4b56efac52ee6 (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
38
39
40
41
42
43
public class A
{
	public static int Main ()
	{
		var a = new A ();
		a.Test ();
		if (a.Properties.P2.Value != 1)
			return 1;

		return 0;
	}

	S s = new S (55);

	void Test ()
	{
		Properties.P2.Value = 1;
	}

	internal S Properties {
		get { return s; }
	}
}

struct S
{
	C c;

	public S (int i)
	{
		c = new C ();
	}

	public C P2
	{
		get { return c; }
	}
}

class C
{
	public int Value;
}