[wasm] Fix WASM CI script. (#6741)
[mono-project.git] / mcs / errors / cs1654-5.cs
blobfbabd02f1c8e15047ea486e15bd959b969dd37ae
1 // CS1654: Cannot assign to members of `p' because it is a `foreach iteration variable'
2 // Line: 14
4 using System.Collections;
6 struct P {
7 public int x { get; set; }
10 class Test {
11 static void Foo (IEnumerable f)
13 foreach (P p in f)
14 p.x += 2;