projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2002-02-25 Ravi Pratap <ravi@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-61.cs
1
//
2
// This tests checks that we allow the `get' and `set' keywords inside
3
// the get and set blocks. It does the same for Events special remove
4
// and add keywords.
5
//
6
class X {
7
int Property {
8
get {
9
int get;
10
get = 1;
11
return get;
12
}
13
set {
14
int set;
15
set = value;
16
}
17
}
18
19
int P2 {
20
get { return 0; }
21
}
22
23
int P3 {
24
set { }
25
}
26
27
public delegate void MyEvent ();
28
29
public event MyEvent XX {
30
add { int add = 1; }
31
remove { int remove = 1; }
32
}
33
34
static int Main ()
35
{
36
return 0;
37
}
38
}
39