Syntax error for valid generic TList<TPair<String, String>>.Create expression
Original Reporter info from Mantis: urhen
-
Reporter name: NoName
Original Reporter info from Mantis: urhen
- Reporter name: NoName
Description:
The expression TList&LtPos;TPair&LtPos;String, String>>.Create gives following wrong error:
y.pas(12,26) Fatal: Syntax error, ";" expected but "," found
Steps to reproduce:
program 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 information:
Free Pascal Compiler version 3.2.0-beta-r20:45235M [2020/05/04] for x86_64
Mantis conversion info:
- Mantis ID: 37111
- Version: 3.3.1