TaskAwaiter from CoreFX
[mono-project.git] / mcs / errors / cs0457-2.cs
blob2f4d2ca63ccb12fc945f2e19f9a42f88134e0bd0
1 // CS0457: Ambiguous user defined conversions `A.implicit operator byte(A)' and `A.implicit operator sbyte(A)' when converting from 'A' to 'int'
2 // Line: 20
4 class A
6 public static implicit operator ushort (A mask)
8 return 1;
11 public static implicit operator short (A mask)
13 return 2;
17 class X
19 static A a = null;
20 static object o = -a;