Merge pull request #820 from brendanzagaeski/master
[mono.git] / mcs / errors / cs0035-2.cs
1 // CS0035: Operator `++' is ambiguous on an operand of type `MyType'
2 // Line: 31
3
4 public class MyType
5 {
6         public static implicit operator float (MyType v)
7         {
8                 return 0;
9         }
10
11         public static implicit operator decimal (MyType v)
12         {
13                 return 0;
14         }
15
16         public static implicit operator MyType (float v)
17         {
18                 return null;
19         }
20
21         public static implicit operator MyType (decimal v)
22         {
23                 return null;
24         }
25 }
26
27 class Test
28 {
29         static void test (MyType x)
30         {
31                 x++;
32         }
33 }