mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 17:07:54 +02:00
15 lines
242 B
ObjectPascal
15 lines
242 B
ObjectPascal
function SomeFunc(var Res: array of Double): Integer;
|
|
begin
|
|
// do something
|
|
writeln(High(Res));
|
|
end;
|
|
|
|
var
|
|
d: Double;
|
|
darr: array[1..3] of Double;
|
|
begin
|
|
SomeFunc(d); // Delphi accepts this, FPC does not
|
|
SomeFunc(darr); // OK
|
|
end.
|
|
|