[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)
[mono-project.git] / mcs / errors / cs1656-3.cs
blob03c62c3d4ae8acfc0eabda7f8ce9ab173499c191
1 // CS1656: Cannot assign to `i' because it is a `foreach iteration variable'
2 // Line: 9
4 class X {
6 static void Main ()
8 foreach (int i in new int[] { 2, 3 }) {
9 i = 4;