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

42 lines
534 B
C#

class A
{
public static int operator != (A a, dynamic b)
{
return -1;
}
public static int operator == (A a, dynamic b)
{
return +1;
}
}
public class C
{
public static bool operator == (C a, object b)
{
return ReferenceEquals (a, b);
}
public static bool operator != (C a, dynamic b)
{
return !ReferenceEquals (a, b);
}
public static decimal operator -(dynamic p1, C p2)
{
return 9;
}
public static int Main ()
{
var c = new C ();
var v = 1 - c;
if (v != 9)
return 1;
return 0;
}
}