summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0019-22.cs
blob: 38f13a3d9af6fc7e9de83b5120e149a78494da33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// CS0019: Operator `-' cannot be applied to operands of type `AA' and `long'
// Line: 11

enum AA : short { a, b = 200 }

public class C
{
	public static void Main ()
	{
		const long ul = 1;
		AA b = AA.a - ul;
	}
}