<?xml version="1.0" encoding="us-ascii"?>
<ErrorDocumentation xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ErrorName>CS1654</ErrorName>
  <Examples>
    <string>// cs1654-2.cs: Cannot assign to members of `q' because it is a `foreach iteration variable'
// Line: 22

using System.Collections;

struct P {
	public int x;
}

struct Q {
	public P p;
}

class Test {
	static IEnumerable foo () { return null; }

	static void Main ()
	{
		IEnumerable f = foo ();
		if (f != null)
			foreach (Q q in f)
				q.p.x = 0;
	}
}
</string>
    <string>// cs1654.cs: Cannot assign to members of `p' because it is a `foreach iteration variable'
// Line: 18

using System.Collections;

struct P {
	public int x;
}

class Test {
	static IEnumerable foo () { return null; }

	static void Main ()
	{
		IEnumerable f = foo ();
		if (f != null)
			foreach (P p in f)
				p.x = 0;
	}
}
</string>
  </Examples>
</ErrorDocumentation>