fix 'new' usage
[mcs.git] / errors / cs0019-22.cs
blobee5632f20a7e499acd14b09b708932ac723fab88
1 // CS0019: Operator `-' cannot be applied to operands of type `AA' and `long'
2 // Line: 11
4 enum AA : short { a, b = 200 }
6 public class C
8 public static void Main ()
10 const long ul = 1;
11 const AA b = AA.a - ul;