Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

22 lines
366 B
C#

// CS0457: Ambiguous user defined conversions `A.implicit operator byte(A)' and `A.implicit operator sbyte(A)' when converting from 'A' to 'int'
// Line: 20
class A
{
public static implicit operator ushort (A mask)
{
return 1;
}
public static implicit operator short (A mask)
{
return 2;
}
}
class X
{
static A a = null;
static object o = -a;
}