5 public static int Counter;
6 public static implicit operator string (A c)
12 public static implicit operator Delegate (A c)
20 public static int Counter;
21 public static implicit operator string (B c)
30 public static int Counter;
31 public static implicit operator Delegate (D d)
40 public static int Counter;
41 public static implicit operator bool (E d)
50 public static int Main ()
52 if (new B () != new B () || B.Counter != 2)
55 if (new B () != "B-struct" || B.Counter != 3)
58 if (new B () == null || B.Counter != 4) {
59 // FIXME: Incorrect null lifting
63 if (new D () != new D () || D.Counter != 2)
66 if (new D () != null || D.Counter != 3) {
67 // FIXME: Incorrect null lifting
71 if (new A () != "A-class" || A.Counter != 1)
74 if (new A () == null || A.Counter != 1)
77 if (new E () != new E () || E.Counter != 2)
80 Console.WriteLine ("ok");