Code Completion does not offer private and protected methods 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:
Code Completion does not offer private and protected methods for Generic classes.
Steps to reproduce:
Copy following code to a new project.
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, FGL;
type
TGLForms = class (specialize TFPGObjectList<TForm>)
end;
{ TForm1 }
TForm1 = class(TForm)
procedure FormClick(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.FormClick(Sender: TObject);
var aGLForms: TGLForms;
begin
aGLForms.|
end;
end.
Place caret after identifier aGLForms and hit Ctrl+Space.
Code completion should offer private and protected methods of TFPGObjectList and protected methods of TFPSList (it is parent class of TFPGObjectList) but they don't appear there.
Such code is compilable.
Note: Once the methods are there (InternalExchange(), for example) Alt+Up works well.
Additional information:
Lazarus 1.9.0 r57795M FPC 3.0.4 x86_64-linux-qt
Mantis conversion info:
- Mantis ID: 33702
- Assignee Gitlab user: @PascalRiekenberg
- Assignee Mantis username: PascalR
- Assignee name: Pascal Riekenberg
- OS: Linux
- OS Build: Chakra 64-bit
- Build: 57795
- Platform: amd64
- Version: 1.9 (SVN)