tw36114.pp 383 B

12345678910111213141516171819202122
  1. { %FAIL }
  2. program tw36114;
  3. {$mode objfpc}{$H+}{$J-}
  4. type
  5. TTestme=class
  6. strict private
  7. const
  8. {$push}{$writeableconst off} // superfluous but also doesn't work
  9. c_one:integer = 1;
  10. c_two:integer = 10;
  11. {$pop}
  12. public
  13. class property one:integer read c_one;
  14. class property two:integer read c_two;
  15. end;
  16. begin
  17. TTestme.c_one := 1000;
  18. writeln(TTestme.One);
  19. end.