Complete code error
Original Reporter info from Mantis: silvioprog
-
Reporter name: silvioprog
Original Reporter info from Mantis: silvioprog
- Reporter name: silvioprog
Description:
The complete code can't auto declare a variable of a generic class. See steps to reproduce below.
Steps to reproduce:
Put this code in your unit:
TObjects = specialize TFPGList<TObject>;
After, implement this code:
procedure TFoo.MyProcedure;
begin
VObjects := TObjects.Create;
end;
Move the cursor position after VObjects (e.g.: VObjects| ) and try to complete (Shift+Ctrl+C), it will generate this code:
procedure TFoo.MyProcedure;
var
VObjects: generic;
begin
VObjects := TObjects.Create;
end;
But the correct code would be:
procedure TFoo.MyProcedure;
var
VObjects: TObjects;
begin
VObjects := TObjects.Create;
end;
Thanks.
Mantis conversion info:
- Mantis ID: 23903
- Version: 1.0.7 (SVN)
Edited by Juha Manninen