Merge pull request #3894 from akoeplinger/fix-actor
[mono.git] / mcs / errors / cs0035.cs
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a633058f10b80127d80bc18e0789f3b8813dac82 100644 (file)
@@ -0,0 +1,24 @@
+// 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;  
+       }
+}