Rewrite lifted binary operators to match C# spec more closely. Fixes #12608 and about...
[mono.git] / mcs / errors / cs0034-6.cs
1 // CS0034: Operator `==' is ambiguous on operands of type `Foo' and `Foo'
2 // Line: 23
3
4 public struct Foo
5 {
6         public static implicit operator int? (Foo f)
7         {
8                 return 1;
9         }
10
11         public static implicit operator bool? (Foo f)
12         {
13                 return false;
14         }
15 }
16
17 class C
18 {
19         public static void Main ()
20         {
21                 Foo f;
22                 Foo f2;
23                 var v = f == f2;
24         }
25 }