diff options
Diffstat (limited to 'mcs/errors/cs1654-2.cs')
-rw-r--r-- | mcs/errors/cs1654-2.cs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/mcs/errors/cs1654-2.cs b/mcs/errors/cs1654-2.cs deleted file mode 100644 index 1305053eb43..00000000000 --- a/mcs/errors/cs1654-2.cs +++ /dev/null @@ -1,24 +0,0 @@ -// 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; - } -} |