fpc/tests/webtbs/tw29609.pp
svenbarth 25744dd3f1 Fix for Mantis #29609.
pexpr.pas, factor.factor_read_id:
  * don't use a cloadvmtaddrnode for accessing class properties in records

+ added test

git-svn-id: trunk@33110 -
2016-02-19 21:37:02 +00:00

23 lines
341 B
ObjectPascal

{ %NORUN }
{$mode objfpc}
{$MODESWITCH AdvancedRecords}
program tw29609;
type t = record
class var v : Boolean;
class function f : Boolean; static;
class property p : Boolean read v;
end;
class function t.f : Boolean;
begin
Result := p; // "Error: Pointer to object expected"
end;
begin
end.