X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0457.cs;h=451615f8e51c5b313eaf59e68273b2f463b18503;hb=8936bf96686a4a5081635868bcb6f9a449b02f73;hp=3b7ebc603d194224b0402552ac63796b56c6fb32;hpb=782d2bc71933ae30bc1fcb0855186e9c17bd36da;p=mono.git diff --git a/mcs/errors/cs0457.cs b/mcs/errors/cs0457.cs index 3b7ebc603d1..451615f8e51 100644 --- a/mcs/errors/cs0457.cs +++ b/mcs/errors/cs0457.cs @@ -1,21 +1,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; -} +// 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; +}