3 public static implicit operator byte (A mask)
\r
9 public class Constraint
\r
14 enum E2 : byte { A }
\r
16 public static Constraint operator !(Constraint m)
\r
21 public static Constraint operator +(Constraint m)
\r
26 public static Constraint operator ~(Constraint m)
\r
31 public static Constraint operator -(Constraint m)
\r
36 static void Foo (object o)
\r
40 public static int Main ()
\r
43 Foo (!(Constraint)null);
\r
44 Foo (~(Constraint)null);
\r
45 Foo (+(Constraint)null);
\r
46 Foo (-(Constraint)null);
\r
49 const byte b2 = +b1;
\r
50 const byte b3 = (byte)0;
\r
51 const int a = -2147483648;
\r
52 const long l = -9223372036854775808;
\r
53 const long l2 = -uint.MaxValue;
\r
54 const E1 e = (E1)~E2.A;
\r
57 if (-int.MinValue != int.MinValue)
\r
69 System.Console.WriteLine ("OK");
\r