[fpc-devel] Class property and virtual getter

luiz americo pereira camara luizmed at oi.com.br
Thu Feb 27 04:36:45 CET 2014

TSimpleModel = class(TPersistent)
    class function GetResourceClient: IResourceClient; virtual;
    class property ResourceClient: IResourceClient read GetResourceClient;

Trying to compile the above code i get the following error:
Error: Illegal symbol for property access

Changing the GetResourceClient method from virtual to static works

Is this a bug or by design?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140227/e5ba4e5d/attachment.html>

More information about the fpc-devel mailing list