"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / errors / cs0034-3.cs
blob23de485595597adbe933ae511ecfcc0ca72aa08f
1 // CS0034: Operator `+' is ambiguous on operands of type `Y' and `X'
2 // Line: 22
3 public class Y {
4 public static implicit operator int (Y y) {
5 return 0;
8 public static implicit operator string (Y y) {
9 return null;
12 public static implicit operator Y (string y) {
13 return null;
16 public static implicit operator Y (int y) {
17 return null;
21 public class X {
22 public static implicit operator int (X x) {
23 return 0;
26 public static implicit operator string (X x) {
27 return null;
31 public class C {
32 public static void Main ()
34 Y y = new Y () + new X ();