Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

27 lines
415 B
C#

// CS0019: Operator `==' cannot be applied to operands of type `Foo' and `null'
// Line: 14
struct Foo
{
public static bool operator == (int d1, Foo d2)
{
throw new System.ApplicationException ();
}
public static bool operator != (int d1, Foo d2)
{
throw new System.ApplicationException ();
}
}
public class Test
{
static Foo ctx;
public static void Main ()
{
if (ctx == null)
return;
}
}