fpc/tests/tbf/tb0213.pp
florian 57f3e2f40a * forbid access to properties in class methods
* readability fix

git-svn-id: trunk@11838 -
2008-09-28 20:16:13 +00:00

17 lines
207 B
ObjectPascal

{ %fail }
{$mode objfpc}
type
tc1 = class
fp : longint;
class procedure p;
property prop : longint read fp;
end;
class procedure tc1.p;
begin
writeln(prop);
end;
begin
end.