2 public static explicit operator int (Value val)
7 public static explicit operator MyObject (Value val)
9 return new MyObject (1);
12 public static explicit operator uint (Value val)
19 public MyObject (int i) {}
22 class Derived : MyObject {
23 public Derived (int i) : base (i) { }
27 Value val = new Value ();
36 Value v = new Value ();
41 // This will throw an exception.
42 // This test is more of a compile test, we need a real
43 // good test that does not require this lame catch.
44 Derived d = (Derived) v;