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
2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git]
/
tests
/
test-655.cs
blob
30be98ddbfb7d53f6811fc7fb729bd9b5c2b0cb7
1
public class
D
2
{
3
byte
v
;
4
5
byte this
[
int
idx
] {
6
get
{
7
return
v
;
8
}
9
set
{
10
v
=
value
;
11
}
12
}
13
14
static int
Main
()
15
{
16
D d
=
new
D
();
17
byte
b
=
1
;
18
d
[
0
] +=
1
;
19
d
[
0
] +=
b
;
20
if
(
d
[
0
] !=
2
)
21
return
1
;
22
23
return
0
;
24
}
25
}