[Lazarus] Codetools fail: unit source directory seem to be missing

Vincent Snijders vincent.snijders at gmail.com
Fri Oct 22 14:23:22 CEST 2010



On Fri, 22 Oct 2010, Birger Jansen wrote:

> Hi all,
>
> I'm converting a project from Delphi to FreePascal. It is a mathematical application that uses records with methods. Since this is not possible in FPC I am trying to convert this base type from record to object:
>

[snip]

>
> It fails with an error: Class isn't a parent class of the current class. If I set TNode.FCoord outside the constructor there is no problem at all. Also, when I try to access other methods of TPoint this fails (see UpdateCoord in the full source below).
>
> Any idea what causes this behaviour? I included the complete code below for your reference.

Sounds like a bug in the compiler. Probably it sees the TPoint.Create as a
reference to an 'inherited constructor'.

I think you should create a bug report for this.

Michael.




More information about the Lazarus mailing list