mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 14:49:33 +02:00

dynamic arrays and fixed-length static arrays when looking for overloads of array constructors, while these are not valid in such cases (and it also gave an error afterwards when trying to actually use them). This caused a lot of spurious "can't select which overloaded routine to call" errors when using many JVM routines git-svn-id: trunk@29393 -
25 lines
378 B
ObjectPascal
25 lines
378 B
ObjectPascal
{ %norun }
|
|
|
|
{$mode objfpc}
|
|
type
|
|
TMyObject = class;
|
|
TArr = array of TMyObject;
|
|
TMyObject = class
|
|
public
|
|
constructor Create(ar: array of TMyObject); overload;
|
|
constructor Create(ar: TArr); overload;
|
|
end;
|
|
|
|
constructor TMyObject.Create(ar: array of TMyObject);
|
|
begin
|
|
end;
|
|
|
|
constructor TMyObject.Create(ar: Tarr);
|
|
begin
|
|
end;
|
|
|
|
begin
|
|
TMyObject.Create([nil]);
|
|
end.
|
|
|