On Sat, 5 Mar 2011 22:57:02 -0300 Marcos Douglas <m...@delfire.net> wrote:
> The program below compiles. But if I try to use code completion here > writeln(s.F... > Occurs this error: > test.lpr(8,31) Error: ancestor has same name as class. > > program test; > > {$mode objfpc}{$H+} > > uses SysUtils, Classes; > > type > TStringList = class(Classes.TStringList) The codetools have no circle detection when searching recursively. As a simple protection versus endless loops they do not support naming classes the same as their ancestort. And I agree with Juha, it is bad coding practice. Mattias -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus