View Issue Details

IDProjectCategoryView StatusLast Update
0038970LazarusIDEpublic2021-06-11 07:57
ReporterDenis Golovan Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.1 (SVN) 
Summary0038970: Code navigation fails on generic nested types
DescriptionHi

Try navigating in line with comment => navigation fails.
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetGTK 2
Attached Files

Relationships

related to 0028989 assignedPascal Riekenberg Code completion can not resolve generic types used in nested classes/objects/records 
related to 0029532 assignedMattias Gaertner [codetools] "Find declaration" or "Complete code" inside nested type (specialized nested generic type). 

Activities

Denis Golovan

2021-06-06 15:38

reporter  

project1.lpr (372 bytes)   
program project1;

{$mode objfpc}{$H+}
{$modeswitch nestedprocvars}

uses
  {$IFDEF UNIX}
  cthreads,
  {$ENDIF}
  Classes
  { you can add units after this };

type
  generic TOption<T> = record
  end;

  generic TIterNestedFunc<T> = function (): specialize TOption<T> is nested; // put cursor on this line and hit Ctrl+Shift+Down

procedure Test;
begin
end;

begin
end.

project1.lpr (372 bytes)   

Denis Golovan

2021-06-06 15:39

reporter   ~0131186

Tested using Lazarus svn rev. 65180 under Linux x64.

Issue History

Date Modified Username Field Change
2021-06-06 15:38 Denis Golovan New Issue
2021-06-06 15:38 Denis Golovan File Added: project1.lpr
2021-06-06 15:39 Denis Golovan Note Added: 0131186
2021-06-11 07:56 Juha Manninen Relationship added related to 0028989
2021-06-11 07:57 Juha Manninen Relationship added related to 0029532