Recent

Author Topic: [DUPLICATE] Codetools bug with Generics.Collections?  (Read 2225 times)

Eugene Loza

  • Hero Member
  • *****
  • Posts: 663
    • My games in Pascal
[DUPLICATE] Codetools bug with Generics.Collections?
« on: November 25, 2017, 09:48:40 pm »
Thanks to @michaliskambi I see this issue has already been reported. So it's duplicate.

program Project1;
uses Generics.Collections;

type
  TObjList = specialize TObjectList<TObject>;

var
  List: TObjList;

begin
  List := TObjList. <-------------- when I start typing "a dot" it shows error instead of hint/autocomplete

end.


generics.collections.pas(81,26) Error: identifier expected, but ( found
or sometimes:
generics.collections.pas(81,27) Error: expected end., but TCustomArrayHelper found

Everything compiles fine. Just CodeTools stop working (displaying hints, or allowing ctrl+clicks and other useful stuff). Affects only the unit, where Generics.Collections is used.

Lazarus 1.9 + FPC 3.1.1 / Debian Jessie 64 bit.
« Last Edit: November 25, 2017, 09:55:13 pm by Eugene Loza »
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

 

TinyPortal © 2005-2018