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-04-01 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs1612-6.cs
blob
6278d4ce72c609e7cd60519a3058a4407f0388f4
1
// CS1612: Cannot modify a value type return value of `Test.v'. Consider storing the value in a temporary variable
2
// Line: 28
3
4
public struct
V
5
{
6
public int this
[
int
i
] {
7
set
{
8
}
9
}
10
11
public int
x
;
12
}
13
14
class
Test
15
{
16
V m_value
;
17
18
public
V v { get { return m_value; }
}
19
20
public
Test
()
21
{
22
m_value
=
new
V
();
23
}
24
25
public static void
Main
()
26
{
27
Test t
=
new
Test
();
28
t
.
v
[
0
] =
9
;
29
}
30
}