Changing the specialization of generics confuses codetools (was: No autocomplete for generics)
Original Reporter info from Mantis: Blaazen @Blaazen
-
Reporter name: Vojtech Cihak
Original Reporter info from Mantis: Blaazen @Blaazen
- Reporter name: Vojtech Cihak
Description:
Ctrl+Space does not work for generics in Source Editor.
How to reproduce:
Copy following code to empty project and try to press CTRL+Space after the dot in FormClick method.
It will show "unit1.pas(40,13) Error: illegal qualifier . found" in Messages.
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, FGL;
type
{ TMyClass }
TMyClass = class
FMyInt: Integer;
property MyInt: Integer read FMyInt;
end;
TMyGL = specialize TFPGObjectList<TMyClass>;
{ TForm1 }
TForm1 = class(TForm)
procedure FormClick(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
MyGL: TMyGL;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.FormClick(Sender: TObject);
var i: Integer;
begin //try hit CTRL+Space after the dot below
i:=MyGL[0].
end;
end.
Additional information:
Lazarus SVN r.39581
Mantis conversion info:
- Mantis ID: 23537
- Version: 1.1 (SVN)
- Monitored by: » @PascalDragon (Sven Barth)