fpc/tests/test/tstatic4.pp
paul 3ed4c58502 compiler:
- implement class properties: properties which can access only static fields and static class methods
  - tests
  - fix a possibility to call an instance method from the class method

git-svn-id: trunk@14585 -
2010-01-09 18:37:54 +00:00

32 lines
360 B
ObjectPascal

{ %FAIL}
program tstatic4;
{$APPTYPE console}
{$ifdef fpc}
{$mode delphi}{$H+}
{$endif}
type
{ TSomeClass }
TSomeClass = class
public
class procedure StaticProc; static;
procedure RegularProc;
end;
{ TSomeClass }
procedure TSomeClass.RegularProc;
begin
end;
class procedure TSomeClass.StaticProc;
begin
RegularProc;
end;
begin
end.