bug0246.pp 183 B

12345678910111213
  1. type
  2. tref=record
  3. ofs : longint;
  4. end;
  5. procedure p(const ref:tref);
  6. begin
  7. with ref do
  8. ofs:=ofs+1; { This should issue an error, because ref is const ! }
  9. end;
  10. begin
  11. end.