summaryrefslogtreecommitdiff
path: root/tests/webtbf/tw36114.pp
blob: 604b7fe8adbfea14beae242b9b22d8e99fe3ed69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ %FAIL }

program tw36114;

{$mode objfpc}{$H+}{$J-}
type
  TTestme=class
  strict private
  const
  {$push}{$writeableconst off} // superfluous but also doesn't work
    c_one:integer = 1;
    c_two:integer = 10;
  {$pop}
  public
  class property one:integer read c_one;
  class property two:integer read c_two;
  end;

begin
  TTestme.c_one := 1000;
  writeln(TTestme.One);
end.