blob: 4a96f68e70dda8997e8e308a365a9b5db0e65cd9 (
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 sbyte (A mask)
{
return 1;
}
public static implicit operator byte (A mask)
{
return 2;
}
}
class X
{
static A a = null;
static object o = ~a;
}
|