<p>Am 01.12.2014 18:59 schrieb "silvioprog" <<a href="mailto:silvioprog@gmail.com">silvioprog@gmail.com</a>>:<br>
><br>
> Hello,<br>
><br>
> From the Embarcadero wiki:<br>
><br>
> "A helper type may not declare instance data, but class fields are allowed." ( <a href="http://docwiki.embarcadero.com/RADStudio/XE7/en/Class_and_Record_Helpers_(Delphi)">http://docwiki.embarcadero.com/RADStudio/XE7/en/Class_and_Record_Helpers_(Delphi)</a> ).<br>
><br>
> In Delphi it compiles fine:<br>
><br>
> TFoo = class<br>
> end;<br>
><br>
> TBar = class helper for TFoo<br>
> private class var<br>
> FFoo: TFoo;<br>
> end;<br>
><br>
> In FPC:<br>
><br>
> project1.lpr(11,5) Error: An interface, helper or Objective-C protocol or category cannot contain fields<br>
><br>
> Bug?</p>
<p>Yes, bug. Please report.</p>
<p>Regards,<br>
Sven</p>