summaryrefslogtreecommitdiff
path: root/tests/test/tarray20.pp
blob: 4c013b061f8d059005cd1a5aa42993eb598937d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ %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.