Files
mono/mcs/errors/cs0035.cs
T
Marek Safar 782d2bc719 Correctly reapplied my last changes
svn path=/trunk/mcs/; revision=68838
2006-12-01 18:56:09 +00:00

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;
}
}