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

test-61.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 639aaf6e6179f18e7de0ab94c62a9edf9616399d (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
//
// This tests checks that we allow the `get' and `set' keywords inside
// the get and set blocks.  It does the same for Events special remove
// and add keywords.
//
class X {
	int Property {
		get {
			int get;
			get = 1;
			return get;
		}
		set {
			int set;
			set = value;
		}
	}

	int P2 {
		get { return 0; }
	}

	int P3 {
		set {  }
	}

	public delegate void MyEvent ();
	
	public event MyEvent XX {
		add { int add = 1; }
		remove { int remove = 1; }
	}

	public static int Main ()
	{
		return 0;
	}
}