Am 29.11.2019 um 22:56 schrieb Ryan Joseph via fpc-pascal:
On Nov 29, 2019, at 2:00 AM, Sven Barth via fpc-pascal
wrote:
Why? It does say that a class type is expected. And the column of the error
should point to the correct location.
That's the same error you'd get when specializing
Am 30.11.2019 um 18:56 schrieb Florian Klämpfl:
Am 30.11.19 um 18:51 schrieb Sven Barth via fpc-pascal:
Am 28.11.2019 um 16:14 schrieb Ryan Joseph via fpc-pascal:
{$mode objfpc}
program test;
uses
FGL;
// Type identifier expected
// Internal error 2019112401
generic function
Am 29.11.2019 um 01:01 schrieb Ryan Joseph via fpc-pascal:
function CopyList (source: TFPSList): TFPSList;
begin
result := TFPSList(source.ClassType.Create);
result.Assign(source);
end;
This can't work. ClassType is of type TClass and TClass.Create calls
TObject.Create, *not* the
Am 30.11.19 um 18:51 schrieb Sven Barth via fpc-pascal:
Am 28.11.2019 um 16:14 schrieb Ryan Joseph via fpc-pascal:
{$mode objfpc}
program test;
uses
FGL;
// Type identifier expected
// Internal error 2019112401
generic function CopyList(source: specialize
FGL.TFPGObjectList): specialize
Am 28.11.2019 um 16:14 schrieb Ryan Joseph via fpc-pascal:
{$mode objfpc}
program test;
uses
FGL;
// Type identifier expected
// Internal error 2019112401
generic function CopyList(source: specialize FGL.TFPGObjectList): specialize
FGL.TFPGObjectList;
begin
end;
begin
end.
What option