[fpc-devel] Scalar value is accepted as an argument for an open array parameter
pascaldragon at googlemail.com
Fri Jun 8 08:54:27 CEST 2012
Am 08.06.2012 08:18, schrieb Alexander Klenin:
> The following code compiles both with :
> procedure F(const A: array of ShortInt); begin end;
> begin F(1); end.
> I think this is a bug in FPC, but if not -- it should be documented here:
> I am willing to file an issue one way or another.
AFAIK this is by intension (this was mentioned some weeks ago on one of
the lists, I can't find it though...).
More information about the fpc-devel