[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / errors / cs0034-6.cs
blobd6ebe8e34db5c8108f2260a30b4e22b6169b906e
1 // CS0034: Operator `==' is ambiguous on operands of type `Foo' and `Foo'
2 // Line: 23
4 public struct Foo
6 public static implicit operator int? (Foo f)
8 return 1;
11 public static implicit operator bool? (Foo f)
13 return false;
17 class C
19 public static void Main ()
21 Foo f;
22 Foo f2;
23 var v = f == f2;