fpc/tests/webtbs/tw19452a.pp
Jonas Maebe bad1b2a1c1 * fix for issue introduced in r28862: the compiler considered also
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 -
2015-01-04 19:41:21 +00:00

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.