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.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to