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

test-24.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 622f5dcbf9686bb000aaae7bfdf96ca6abeaccc4 (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
//
// Properties intermixed in assignments
//

using System;

class X {

	static string v;

	static string S {
		get {
			return v;
		}
		set {
			v = value;
		}
	}

	static string x, b;
	
	public static int Main ()
	{

		x = S = b = "hlo";
		if (x != "hlo")
			return 1;
		if (S != "hlo")
			return 2;
		if (b != "hlo")
			return 3;
		return 0;
	}
}