Not quite understanding how that’s not entirely parsed by the time you assign outside of the record. Even so I would expect it to copy what the const was able to capture, fully parsed or not.
Also, why does it work to do begin r := TMyRecord.default; in the main block? > On Nov 10, 2018, at 4:55 PM, Sven Barth via fpc-pascal > <[email protected]> wrote: > > TMyRecord is not yet completely parsed. There could be another field located > behind the "default" constant. Thus using the type of the record aside from > Pointers and method parameters and result is not allowed. > Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
