blob: 9d8c8532b0f4e16c78aceff420e0694010dc2c98 (
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; }
}
static int Main ()
{
return 0;
}
}
|