fpc/tests/webtbs/tw10998.pp
2010-01-08 18:01:28 +00:00

18 lines
240 B
ObjectPascal

program statictest;
{$mode delphi}
type
TMyClass = class
public
class procedure StaticCall; static;
end;
class procedure TMyClass.StaticCall;
begin
WriteLn('Static method was called!');
end;
begin
TMyClass.StaticCall;
end.