fpc/tests/test/tclass12b.pp
2010-01-11 08:43:10 +00:00

28 lines
413 B
ObjectPascal

{ %FAIL}
program tclass12b;
{$ifdef fpc}
{$mode delphi}
{$endif}
{$apptype console}
type
TSomeClass = class
strict private
const
PrivateConst = 3.14;
end;
TAnotherClass = class(TSomeClass)
public
class procedure WritePrivateConst; static;
end;
class procedure TAnotherClass.WritePrivateConst;
begin
WriteLn(PrivateConst)
end;
begin
TAnotherClass.WritePrivateConst
end.