blob: e88bfb36444aa6abcda7ce203b832f7c1b4dd6dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// CS1656: Cannot assign to `i' because it is a `foreach iteration variable'
// Line: 14
using System.Collections;
class Test {
static IEnumerable foo () { return null; }
static void Main ()
{
IEnumerable f = foo ();
if (f != null)
foreach (int i in f)
i = 0;
}
}
|