<p>Am 12.03.2016 22:45 schrieb "Mazola Winstrol" <<a href="mailto:mazofeifer@gmail.com">mazofeifer@gmail.com</a>>:<br>
><br>
> Hello,<br>
><br>
> Fpc version: 3.0 (the one provided by Lazarus).<br>
><br>
> Please confirm if this is a bug regarding operator overloading and type specialization. It is a quite difficult to explain, but i will try.<br>
><br>
[snip]<br>
><br>
> It seems the compiler treats the type MyRecordDefinitionA.TMyRecord and MyRecordDefinitionB.TMyRecord as being the same type. So, the compiler try to apply the logical operator and of MyRecordDefinitionB.TMyRecord in the integer specialization of the type MyRecordDefinitionA.TMyRecord.</p>
<p>It does not treat them the same, it simply picks the wrong one (as in "doesn't correctly respect the unit qualifier"). You should see a different (yet no less wrong) behavior if you turn around the units in the uses-clause.</p>
<p>Please report.</p>
<p>Regards,<br>
Sven</p>