12 public enum MyEnum : byte {
25 enum AA : byte { a, b }
26 enum BB : ulong { x, y }
28 const int myconstant = 30;
30 enum Compute { two = AA.b + B.y }
32 // The constant assignment follows a different path
33 const Bar bar_assignment = 0;
35 public static int Main ()
37 byte b = (byte) MyEnum.Foo;
39 Console.WriteLine ("Foo has a value of " + b);
47 int l = (int) AA.b + 1;
49 if ((int) Compute.two != 2)
80 if (e.ToString () != "d")
84 // Test "U operator (E x, E x)"
86 // Notice that the Microsoft C# compiler wont compile the following
87 // code, that is a bug in their compiler, see section 14.7.5 of the
96 Console.WriteLine ("Value: " + e.ToString ());
97 Console.WriteLine ("Enum emission test okay");