[fpc-devel] Class property and virtual getter
Michael Van Canneyt
michael at freepascal.org
Thu Feb 27 09:19:45 CET 2014
On Thu, 27 Feb 2014, luiz americo pereira camara wrote:
> TSimpleModel = class(TPersistent)
> protected
> class function GetResourceClient: IResourceClient; virtual;
> class property ResourceClient: IResourceClient read GetResourceClient;
> public
> end;
>
> 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?
By design.
Michael.
More information about the fpc-devel
mailing list