<div dir="ltr">2016-03-07 3:53 GMT-03:00 Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><p>Am 06.03.2016 22:09 schrieb "Mazola Winstrol" <<a href="mailto:mazofeifer@gmail.com" target="_blank">mazofeifer@gmail.com</a>>:<br>
><br>
> Hello,<br>
><br>
> Fpc: 3.0<br>
><br>
> Should the compiler to allow the definition of two operator overloading with the same parameters and diferent result types?<br>
><br>
> e.g:<br>
><br>
> ==== code ====<br>
><br>
> TMyRecord<T> record<br>
> class operator Implicit(A: TMyRecord<T>): Real;<br>
> class operator Implicit(A: TMyRecord<T>): Integer;<br>
> end;<br>
><br>
> ==== end ====<br>
><br>
> The code above doesn't compile. Error: function is already declared Public/Forward operator.</p>
</span><p>Would you please test with trunk? I thought I had fixed that... If it doesn't work there either then please report as well.</p>
<p>Regards,<br>
Sven</p>
<br></blockquote><div><br></div><div>Tested with the trunk version of the build 2016/04/10 (i dont know the revision number. i used the fcup tool to build). It works.<br><br></div><div>Regards <br></div></div><br></div></div>