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
2008-09-29 Jb Evain <jbevain@novell.com>
[mcs.git]
/
tests
/
test-278.cs
blob
1a6fa7e49d37a5c469d837d2da5b390c3448169f
1
using
System
;
2
3
struct
Rect
{
4
int
x
;
5
6
public int
X { get { return x; }
set
{ x = value; }
}
7
}
8
9
class
X
{
10
static int
Main
()
11
{
12
Rect rect
=
new
Rect
();
13
rect
.
X
+=
20
;
14
Console
.
WriteLine
(
"Should be 20: "
+
rect
.
X
);
15
return
rect
.
X
==
20
?
0
:
1
;
16
}
17
}