13 lines
164 B
C#
13 lines
164 B
C#
|
// 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];
|
||
|
}
|
||
|
}
|