[fpc-pascal] Record helper properties

Ryan Joseph ryan at thealchemistguild.com
Sat Apr 20 17:24:22 CEST 2019


I feel like I may have asked this before but I can’t find anything on Google. Why doesn’t this work?

program test;

type
	TRec = record
		x: integer;
	end;

type
	THelper = record helper for TRec
		property F: integer read x; // <<<—— ERROR: Unknown class field or method identifier "x"
	end;

begin
end.

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list