Codetools: code completion for "FOR var IN" with generic class does not work
Original Reporter info from Mantis: PascalR @PascalRiekenberg
-
Reporter name: Pascal Riekenberg
Original Reporter info from Mantis: PascalR @PascalRiekenberg
- Reporter name: Pascal Riekenberg
Description:
code completion responds "not a simply type" if you try to do code completion on then "var" identifier of a "FOR var IN list" statement
if "list" is a generic type.
@mattias Gaertner: If you lead me i can try to provide a patch.
It seem like the ctnSpecialize... node descriptions are skipped somehow.
The found nodes are the ctnGeneric...
Steps to reproduce:
try code completion on c1 or c2 of the following example
Additional information:
program Project1;
uses
Generics.Collections;
type
TClass = class
end;
TClassList1 = class(specialize TObjectList<TClass>);
TClassList2 = specialize TObjectList<TClass>;
var
cl1: TClassList1;
cl2: TClassList2;
begin
for c1 in cl1 do begin
end;
for c2 in cl2 do begin
end;
end.
Mantis conversion info:
- Mantis ID: 36981
- OS: Windows 10 x64
- OS Build: 1903
- Build: r63088
- Platform: i386
- Version: 2.1 (SVN)
- Fixed in revision: 63136 (#797768a9).