Re: [fpc-devel] Generic instantiations as result types of procedural types

2020-12-16 Thread Sven Barth via fpc-devel
Am 16.12.2020 um 17:09 schrieb Blaise--- via fpc-devel: The patch http://hg.blaise.ru/public/fpc/rev/544a934d262e (attached) fixes the following: ---8<--- {$Mode Delphi} type G = class var X: T; // EXPECTED: gets compiled // ACTUAL: 'Error: Generics without specialization

[fpc-devel] Generic instantiations as result types of procedural types

2020-12-16 Thread Blaise--- via fpc-devel
The patch http://hg.blaise.ru/public/fpc/rev/544a934d262e (attached) fixes the following: ---8<--- {$Mode Delphi} type G = class var X: T; // EXPECTED: gets compiled // ACTUAL: 'Error: Generics without specialization cannot be used as a type for a variable'