[fpc-pascal] Class helper properties
Ryan Joseph
ryan at thealchemistguild.com
Sun Feb 24 17:03:17 CET 2019
http://wiki.freepascal.org/Helper_types#Usage says class helpers can use properties. Why am I getting this error?
program test;
type
TMyObject = class
m_num: integer;
property num1: integer read m_num;
end;
THelper = class helper for TMyObject
property num2: integer read m_num; // ERROR: Unknown class field or method identifier "m_num"
end;
begin
end.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list