[fpc-pascal] Non-initialized member access warning
pascaldragon at googlemail.com
Thu Jun 8 13:01:27 CEST 2023
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?
> TMyClass = class
> x: integer;
> procedure MyProcedure;
> r: TMyClass;
> r.x := 1;
Please report a bug with a complete example.
More information about the fpc-pascal