fpc/tests/tbf0246.pp
1999-05-29 23:01:47 +00:00

13 lines
183 B
ObjectPascal

type
tref=record
ofs : longint;
end;
procedure p(const ref:tref);
begin
with ref do
ofs:=ofs+1; { This should issue an error, because ref is const ! }
end;
begin
end.