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-03-02 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git]
/
errors
/
cs1656-4.cs
blob
491fd7f3f1e1843627533d2d1b36cd010b34987f
1
// cs1656-4.cs: Cannot assign to `i' because it is a `foreach iteration variable'
2
// Line: 14
3
4
using
System
.
Collections
;
5
6
class
Test
{
7
static
IEnumerable
foo
()
{ return null; }
8
9
static void
Main
()
10
{
11
IEnumerable f
=
foo
();
12
if
(
f
!=
null
)
13
foreach
(
int
i
in
f
)
14
i
=
0
;
15
}
16
}