tb0049.pp 294 B

1234567891011121314151617
  1. { %FAIL }
  2. { Old file: tbf0246.pp }
  3. { const para can be changed without error OK 0.99.13 (PFV) }
  4. type
  5. tref=record
  6. ofs : longint;
  7. end;
  8. procedure p(const ref:tref);
  9. begin
  10. with ref do
  11. ofs:=ofs+1; { This should issue an error, because ref is const ! }
  12. end;
  13. begin
  14. end.