repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-04-24 Miguel de Icaza <miguel@novell.com>
[mcs.git]
/
tests
/
test-61.cs
blob
9d8c8532b0f4e16c78aceff420e0694010dc2c98
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