mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
24 lines
317 B
C#
24 lines
317 B
C#
// CS0035 : Operator `+' is ambiguous on operands of type `Y' and `X'
|
|
// Line: 22
|
|
|
|
class A
|
|
{
|
|
public static implicit operator float(A x)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
public static implicit operator decimal(A x)
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
class M
|
|
{
|
|
static void Main()
|
|
{
|
|
A a = new A ();
|
|
int i = -a;
|
|
}
|
|
} |