repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[mono/tests] Fix out of tree build.
[mono-project.git]
/
mcs
/
tests
/
test-655.cs
blob
e7fc496e30cd906bc867f6389298d203e349c8a1
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
public 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
}