1 2 3 4 5 6 7 8 9 10 11 12
// CS0133: The expression being assigned to `c' must be constant // Line: 10 class C { void Foo () { int[] array; int idx; const int c = array [idx]; } }