<p>Am 10.04.2016 22:15 schrieb "Mazola Winstrol" <<a href="mailto:mazofeifer@gmail.com">mazofeifer@gmail.com</a>>:<br>
><br>
> 2016-03-07 3:53 GMT-03:00 Sven Barth <<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>>:<br>
>><br>
>> Am 06.03.2016 22:09 schrieb "Mazola Winstrol" <<a href="mailto:mazofeifer@gmail.com">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.<br>
>><br>
>> Would you please test with trunk? I thought I had fixed that... If it doesn't work there either then please report as well.<br>
>><br>
>> Regards,<br>
>> Sven<br>
>><br>
>><br>
><br>
> 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.</p>
<p>Thanks for the heads up. Then I need to find which revision fixed this and have that merged to 3.0.1...</p>
<p>Regards,<br>
Sven</p>