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