[mcs] Add expression bodied syntax for accessors. Fixes #54991
[mono.git] / mcs / errors / cs0133-2.cs
1 // CS0133: The expression being assigned to `c' must be constant
2 // Line: 10
3
4 class C
5 {
6         void Foo ()
7         {
8                 int[] array;
9                 int idx;
10                 const int c = array [idx];
11         }
12 }