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

36 lines
501 B
C#

// CS0266: Cannot implicitly convert type `int' to `sbyte'. An explicit conversion exists (are you missing a cast?)
// Line: 33
class A3
{
public static implicit operator sbyte (A3 mask)
{
return 1;
}
public static implicit operator uint (A3 mask)
{
return 6;
}
public static implicit operator long (A3 mask)
{
return 7;
}
public static implicit operator ulong (A3 mask)
{
return 8;
}
}
public class C
{
public static int Main ()
{
A3 a3 = null;
sbyte sa3 = -a3;
}
}