View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0038367 | Lazarus | IDE | public | 2021-01-17 23:43 | 2021-01-17 23:43 |
Reporter | Michl | Assigned To | Pascal Riekenberg | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Product Version | 2.1 (SVN) | ||||
Summary | 0038367: Codetools can't create local variable for specialized list | ||||
Description | Codetools can't create local variable for specialized list: procedure TFooList.DoBar; begin for LFoo in Self do; end; In that code place cursor in front of LFoo and press Ctrl + Shift + C. I get the message "project1.lpr(23,15) Error: Term has no simple type" I would expect autocompletion to: procedure TFooList.DoBar; var LFoo: Integer; begin for LFoo in Self do; end; | ||||
Steps To Reproduce | Copy&Paste following code into a simple program and try: program Project1; {$mode objfpc}{$H+} uses fgl; type TFoo = Integer; { TFooList } TFooList = class(specialize TFPGList<TFoo>) public procedure DoBar; end; { TFooList } procedure TFooList.DoBar; begin for LFoo in Self do; // place cursor here in front of LFoo and press Ctrl + Shift + C end; begin end. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
LazTarget | |||||
Widgetset | |||||
Attached Files |
|