View Issue Details

IDProjectCategoryView StatusLast Update
0037334LazarusIDEpublic2020-07-11 22:53
ReporterBBaz Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.0.10 
Summary0037334: auto completion and completion menu not working/proposing interface helpers
Descriptionauto completion and completion menu dont work with interface helpers
Steps To Reproducefor a new application:

---
unit Unit1;

{$mode objfpc}{$H+}
{$MODESWITCH TYPEHELPERS}

interface

uses
  Classes, SysUtils, Forms, Controls, Graphics, Dialogs;

type

  Ibase = interface
  end;

  TInterfaceHelper = type helper for Ibase
    function isAssigned: boolean;
  end;

  IFoo = interface(Ibase)
  end;

  { TForm1 }

  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
  private
  public
  end;

var
  Form1: TForm1;

implementation
{$R *.lfm}

{ TForm1 }

procedure TForm1.FormCreate(Sender: TObject);
var
  f: IFoo;
begin
  if f.isAss {CTRL+SPACE here, no isAssigned !} then begin end;
end;

function TInterfaceHelper.isAssigned: boolean;
begin
  result := assigned(self);
end;

end.
---

try to get completion after `f.isAss` in `FormCreate`
TagsNo tags attached.
Fixed in Revision
LazTarget
Widgetset
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-07-11 22:53 BBaz New Issue