unit Unit2;
interface
uses
System.Classes;
type
TTestClass = class
public
procedure Test<T: record>;
end;
implementation
//procedure TTestClass.Test<T: record>;
//begin
// [dcc32 Error] Unit2.pas(21): E2029 ',', ';' or '>' expected but ':' found
//end;
procedure TTestClass.Test<T>;
begin
end;
end.
Delphi 11.3
Why do I need to leave out : record in the implementation for the code to compile?