Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-08

Code completion on specialized generic TFPGList

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Torsten Bonde Christiansen

Hi all.

When I use code completion (Ctrl+Shift+C) on an object of a specialized class (eg. TFPGList)
the generated variable is always writte as type "generic".

See the code below:

  ============================
program Project1;
{$mode objfpc}{$H+}
uses
   Classes, fgl;
type
   TMyList = specialize TFPGList<Integer>;
begin
   MyList := TMyList.Create;
end.
  ============================

If I place the cursor at "MyList" and press Ctrl+Shift+C, a var section is created like this:

var
   MyList: generic;

I think this is a bug, as the resulting code is not valid (in any mode).

Regards,
Torsten Bonde Christiansen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140820/f6fb4d0a/attachment.html>

Reply by email

Torsten Bonde Christiansen
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 5 lines
Hi all. When I use code completion (Ctrl+Shift+C) on an object of a specialized class (eg. TFPGList) the generated variable is always writte as type "generic".

I forgot to write that i'm using Lazarus trunk with fpc 2.6.4

Lazarus 1.3 r46049M FPC 2.6.4 x86_64-linux-gtk 2

Regards,
Torsten.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140820/ea80eceb/attachment.html>

Reply by email