2009-02-27 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs0035.cs
blob72e2380a73bb0f27cb107748f515f466139c2cfa
1 // CS0035: Operator `-' is ambiguous on an operand of type `A'
2 // Line: 22
4 class A
6 public static implicit operator float(A x)
8 return 0;
11 public static implicit operator decimal(A x)
13 return 0;
17 class M
19 static void Main()
21 A a = new A ();
22 float f = -a;