View Issue Details

IDProjectCategoryView StatusLast Update
0038087LazarusIDEpublic2020-11-17 14:37
ReporterOkobaPatino Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version2.1 (SVN) 
Summary0038087: CodeTools: Code completion can not resolve generic types using const
DescriptionWhen a type like this is declared, CodeTools can not continue to resolve code in any case.
generic TTest<T; const S: integer> = array [0..S] of T;
Tagsgenerics
Fixed in Revision
LazTarget
Widgetset
Attached Files

Relationships

related to 0038088 closedJuha Manninen JCF fails generic types using const 

Activities

Juha Manninen

2020-11-16 23:26

developer   ~0126992

FPC also fails to compile it, thus Codetools behave as expected.
Your generic syntax looks odd. Are you saying that Delphi compiles it?

OkobaPatino

2020-11-17 06:55

reporter   ~0126993

Last edited: 2020-11-17 07:00

View 2 revisions

FPC has this feature in Trunk, and it is working in mode objfpc and Delphi. This feature is not supported in Delphi.
https://lists.freepascal.org/pipermail/fpc-devel/2020-April/042708.html

Issue History

Date Modified Username Field Change
2020-11-16 17:41 OkobaPatino New Issue
2020-11-16 23:26 Juha Manninen Note Added: 0126992
2020-11-16 23:26 Juha Manninen Relationship added related to 0038088
2020-11-17 06:55 OkobaPatino Note Added: 0126993
2020-11-17 07:00 OkobaPatino Note Edited: 0126993 View Revisions
2020-11-17 14:37 OkobaPatino Tag Attached: generics