Merge pull request #3766 from BrzVlad/feature-default-conc
[mono.git] / mcs / errors / cs1656-6.cs
1 // CS1656: Cannot assign to `i' because it is a `foreach iteration variable'
2 // Line: 9
3
4 class Test
5 {
6         static void Main ()
7         {
8                 foreach (int i in new int[] { 1, 2})
9                         i++;
10         }
11 }