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-09-02 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs1612.cs
blob
d183e5bf24ac441a30af5f1d236a64ae0abad832
1
// CS1612: Cannot modify a value type return value of `X.P'. Consider storing the value in a temporary variable
2
// Line: 9
3
4
using
System
;
5
class
X
{
6
static void
Main
()
7
{
8
9
P
.
x
+=
10
;
10
Console
.
WriteLine
(
"Got: "
+
P
.
x
);
11
}
12
13
static
G P
{
14
get
{
15
return
g
;
16
}
17
}
18
19
static
G g
=
new
G
();
20
21
struct
G
{
22
public int
x
;
23
}
24
}
25