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 implicit operator bool (F f)
52 throw new ApplicationException ();
58 public static int Main ()
60 if (new B () != new B () || B.Counter != 2)
63 if (new B () != "B-struct" || B.Counter != 3)
66 if (new B () == null || B.Counter != 4) {
67 // FIXME: Incorrect null lifting
71 if (new D () != new D () || D.Counter != 2)
74 if (new D () != null || D.Counter != 3) {
75 // FIXME: Incorrect null lifting
79 if (new A () != "A-class" || A.Counter != 1)
82 if (new A () == null || A.Counter != 1)
85 if (new E () != new E () || E.Counter != 2)
88 if (new F () == new F ())
91 Console.WriteLine ("ok");