summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0221-10.cs
blob: 7ad8b28b9c7cd7e5de5643a381411841eb0cfbc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// CS0221: Constant value `-200' cannot be converted to a `byte' (use `unchecked' syntax to override)
// Line: 6

enum AA : byte { a, b = 200 }

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