summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/tclass12a.pp
blob: 0616ae210c65904292054040ff21512c1619791d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
program tclass12a;
{$ifdef fpc}
  {$mode delphi}
{$endif}
{$apptype console}

type
  TSomeClass = class
  strict private
    const
      PrivateConst = 3.14;
  public
    class procedure WritePrivateConst; static;
  end;

  class procedure TSomeClass.WritePrivateConst;
  begin
    WriteLn(PrivateConst);
  end;

begin
  TSomeClass.WritePrivateConst;
end.