summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0133-2.cs
blob: b7a37182d737cea238b6e7c7af0ba96570e04eab (plain)
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];
	}
}