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
[xbuild] More tweaks for portable debug mode
[mono-project.git]
/
mcs
/
errors
/
cs1654-5.cs
blob
fbabd02f1c8e15047ea486e15bd959b969dd37ae
1
// CS1654: Cannot assign to members of `p' because it is a `foreach iteration variable'
2
// Line: 14
3
4
using
System
.
Collections
;
5
6
struct
P
{
7
public int
x { get; set; }
8
}
9
10
class
Test
{
11
static void
Foo
(
IEnumerable f
)
12
{
13
foreach
(
P p
in
f
)
14
p
.
x
+=
2
;
15
}
16
}