Am 06.03.2016 22:09 schrieb "Mazola Winstrol" <mazofei...@gmail.com>:
>
> Hello,
>
> Fpc: 3.0
>
> Should the compiler to allow the definition of two operator overloading
with the same parameters and diferent result types?
>
> e.g:
>
> ==== code ====
>
>   TMyRecord<T> record
>      class operator Implicit(A: TMyRecord<T>): Real;
>      class operator Implicit(A: TMyRecord<T>): Integer;
>   end;
>
> ==== end ====
>
> The code above doesn't compile. Error: function is already declared
Public/Forward operator.

Would you please test with trunk? I thought I had fixed that... If it
doesn't work there either then please report as well.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to