Files
mono/mcs/errors/cs0035.cs
T
Marek Safar 84ff206903 New test, update
svn path=/trunk/mcs/; revision=100262
2008-04-09 19:07:01 +00:00

25 lines
313 B
C#

// CS0035: Operator `-' is ambiguous on an operand of type `A'
// 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 ();
float f = -a;
}
}