blob: 2f4d2ca63ccb12fc945f2e19f9a42f88134e0bd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// 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;
}
|