1 // Tests broken equality and inequality operators
7 public static bool operator == (Foo d1
, Foo d2
)
9 throw new ApplicationException ();
12 public static bool operator != (Foo d1
, Foo d2
)
14 throw new ApplicationException ();
20 public static bool operator == (S2 d1
, S2
? d2
)
22 throw new ApplicationException ();
25 public static bool operator != (S2 d1
, S2
? d2
)
27 throw new ApplicationException ();
33 public static decimal operator != (S3 a
, object b
)
38 public static decimal operator == (S3 a
, object b
)
51 public static int Main ()
64 decimal d
= s3
.Value
== null;
68 Console
.WriteLine ("ok");