Hi all,
I have something strange.
I have a generic function defined as follows:
generic function TJSONRttiStreamClass.CreateObjectFromJSONString<T
(AJSONString: TJSONStringType; ADescriptionTag: string = ''): T;
begin
Result := nil;
end;
When I call it, like this:
LaunchRequest := FSerializer.specialize
CreateObjectFromJSONString<TDabLaunchRequest>(ACommandText);
Then I get a compiler-error on Windows, while it works on Linux:
csjsonrttistreamhelper.pas(81,1) Error: Wrong number of parameters
specified for call to "$fin$00000037"
When I make the function empty (Remove Result := nil) it compiles.
Any idea what to look for?
Regards,
Joost.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel