21 lines
244 B
C#
21 lines
244 B
C#
|
class C
|
||
|
{
|
||
|
public static explicit operator int (C c)
|
||
|
{
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
public static int op_Implicit (C c, bool b)
|
||
|
{
|
||
|
return -1;
|
||
|
}
|
||
|
|
||
|
public static int Main ()
|
||
|
{
|
||
|
int res = (int) new C ();
|
||
|
if (res != 1)
|
||
|
return 1;
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
}
|