Files
mono/mcs/errors/cs0457.cs
T
Marek Safar 782d2bc719 Correctly reapplied my last changes
svn path=/trunk/mcs/; revision=68838
2006-12-01 18:56:09 +00:00

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