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

29 lines
369 B
C#

// CS0019: Operator `==' cannot be applied to operands of type `A' and `int?'
// Line: 22
class A
{
public static bool operator == (A a, int b)
{
return false;
}
public static bool operator != (A a, int b)
{
return false;
}
}
class C
{
public static void Main ()
{
A a = new A ();
object b = a == Id;
}
static int? Id {
get { return 1; }
}
}