View Issue Details

IDProjectCategoryView StatusLast Update
0037111FPCCompilerpublic2020-05-19 00:20
ReporterNoName Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version3.3.1 
Summary0037111: Syntax error for valid generic TList<TPair<String, String>>.Create expression
DescriptionThe expression TList<TPair<String, String>>.Create gives following wrong error:

y.pas(12,26) Fatal: Syntax error, ";" expected but "," found
Steps To Reproduceprogram x;

{$mode Delphi}

uses
  Generics.Collections;

var
  x: TList<TPair<String, String>>;

begin
  x := TList<TPair<String, String>>.Create;
  try
    x.Add(TPair<String, String>.Create('hi', 'bye'));
  finally
    x.Free;
  end;
end.
Additional InformationFree Pascal Compiler version 3.2.0-beta-r20:45235M [2020/05/04] for x86_64
Tagsgenerics
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-05-19 00:19 NoName New Issue
2020-05-19 00:20 NoName Tag Attached: generics