X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ferrors%2Fcs0035.cs;h=a633058f10b80127d80bc18e0789f3b8813dac82;hb=213bce206b46a94c5a80aad2965a45f2aff675f5;hp=b4c98dcef236a3bf7e5772c7dd8dee29130a88a7;hpb=d49951ccf584ba637afb1dab7fff714478e3174d;p=mono.git diff --git a/mcs/errors/cs0035.cs b/mcs/errors/cs0035.cs index b4c98dcef23..a633058f10b 100644 --- a/mcs/errors/cs0035.cs +++ b/mcs/errors/cs0035.cs @@ -1,24 +1,24 @@ -// CS0035 : Operator `+' is ambiguous on operands of type `Y' and `X' -// Line: 22 - -class A -{ - public static implicit operator float(A x) - { - return 0; - } - - public static implicit operator decimal(A x) - { - return 0; - } -} - -class M -{ - static void Main() - { - A a = new A (); - int i = -a; - } -} \ No newline at end of file +// CS0035: Operator `-' is ambiguous on an operand of type `A' +// Line: 22 + +class A +{ + public static implicit operator float(A x) + { + return 0; + } + + public static implicit operator decimal(A x) + { + return 0; + } +} + +class M +{ + static void Main() + { + A a = new A (); + float f = -a; + } +}