Am 07.06.2023 um 10:44 schrieb Hairy Pixels via fpc-pascal:
I'm curious, why doesn't the following code give a warning? Shouldn't the compiler know you're assigning to "r" which hasn't been initialized yet?type TMyClass = class x: integer; end; procedure MyProcedure; var r: TMyClass; begin r.x := 1; end;
Please report a bug with a complete example. Regards, Sven _______________________________________________ fpc-pascal maillist - [email protected] https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
