10 e = myconstant | 0x1fff
13 public enum MyEnum : byte {
26 enum AA : byte { a, b }
27 enum BB : ulong { x, y }
29 const int myconstant = 30;
31 enum Compute { two = AA.b + B.y }
33 // The constant assignment follows a different path
34 const Bar bar_assignment = 0;
36 public static int Main ()
38 byte b = (byte) MyEnum.Foo;
40 Console.WriteLine ("Foo has a value of " + b);
48 int l = (int) AA.b + 1;
50 if ((int) Compute.two != 2)
81 if (e.ToString () != "d")
85 // Test "U operator (E x, E x)"
87 // Notice that the Microsoft C# compiler wont compile the following
88 // code, that is a bug in their compiler, see section 14.7.5 of the
97 Console.WriteLine ("Value: " + e.ToString ());
98 Console.WriteLine ("Enum emission test okay");