On Sun, 24 Feb 2019 11:03:17 -0500 Ryan Joseph <r...@thealchemistguild.com> wrote:
> 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; This is Delphi compatible. A helper property can only access helper methods. A property of a class can access helper methods. pas2js allows both directions. Mattias _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal