a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
32 lines
355 B
C#
32 lines
355 B
C#
class A
|
|
{
|
|
public static bool operator > (A a, object b)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
public static bool operator < (A a, object b)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
class C
|
|
{
|
|
public static int Main ()
|
|
{
|
|
return new C ().Test () ? 1 : 0;
|
|
}
|
|
|
|
int? Id {
|
|
get { return 1; }
|
|
}
|
|
|
|
bool Test ()
|
|
{
|
|
A a = new A ();
|
|
bool b = a > Id && a < Id;
|
|
return b;
|
|
}
|
|
}
|