[Lazarus] Codetools and specialize
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Nov 16 13:18:44 CET 2015
On Mon, 16 Nov 2015 08:16:18 -0300
Leonardo M. Ramé <l.rame at griensu.com> wrote:
> Hi, I'm trying to implement a method of an specialized class, but when I
> type ctrl+space the IDE shows "Error: Identifier not found: specialize".
> But I can compile this project without problems.
>
> The definition of my class is this:
>
> TActListStudies = class(specialize TBaseGAction<TDummy>)
> public
> procedure Post; override;
> end;
Codetools do not yet support anonymous specialization.
See bug report:
http://bugs.freepascal.org/view.php?id=27895
Can you use below instead?
TBaseGActionDummy = specialize TBaseGAction<TDummy>;
TActListStudies = class(TBaseGActionDummy)
public
procedure Post; override;
end;
Mattias
More information about the Lazarus
mailing list