mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 13:32:06 +02:00

Note: there is still a conversion to a set if the types were determined to be incompatible, so that the error is still "set of X is incompatible to Y" instead of "array of Z is incompatible to Y" + added tests git-svn-id: trunk@41844 -
22 lines
210 B
ObjectPascal
22 lines
210 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tarray20;
|
|
|
|
{$mode objfpc}
|
|
{$modeswitch advancedrecords}
|
|
|
|
type
|
|
TTest = record
|
|
end;
|
|
|
|
operator Explicit(a: array of LongInt): TTest;
|
|
begin
|
|
|
|
end;
|
|
|
|
var
|
|
t: TTest;
|
|
begin
|
|
t := [21, 42];
|
|
end.
|