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