Code: Pascal [Select][+][-]class constructor TDefaultJob<T>.Create;begin FPool := TStack<IJob<T>>.Create;end;
Quote from: deadserious on May 13, 2024, 04:17:54 amCode: Pascal [Select][+][-]class constructor TDefaultJob<T>.Create;begin FPool := TStack<IJob<T>>.Create;end; FPC does not support nested inline specializations in mode Delphi yet. You should be able to do something like this which should also work in Delphi (not tested):Code: Pascal [Select][+][-]class constructor TDefaultJob<T>.Create;type IJobT = IJob<T>;begin FPool := TStack<IJobT>.Create;end;
If I wanted to try to fix this in the parser, do you have a hint as to where I should start looking?