mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 15:28:08 +02:00
18 lines
276 B
ObjectPascal
18 lines
276 B
ObjectPascal
{ Old file: tbs0053.pp }
|
|
{ shows a problem with open arrays OK 0.99.1 (FK) }
|
|
|
|
procedure abc(var a : array of char);
|
|
|
|
begin
|
|
// error: a:='asdf';
|
|
end;
|
|
|
|
var
|
|
c : array[0..10] of char;
|
|
|
|
begin
|
|
abc(c);
|
|
writeln(c);
|
|
// error: writeln(a);
|
|
end.
|