Merge pull request #1821 from iainx/replace-getline
[mono-project.git] / mcs / errors / cs0035.cs
bloba633058f10b80127d80bc18e0789f3b8813dac82
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;