mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 23:39:31 +02:00
23 lines
279 B
ObjectPascal
23 lines
279 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tarray19;
|
|
|
|
{$mode objfpc}
|
|
{$modeswitch advancedrecords}
|
|
|
|
type
|
|
TTest = record
|
|
class operator Explicit(a: array of LongInt): TTest;
|
|
end;
|
|
|
|
class operator TTest.Explicit(a: array of LongInt): TTest;
|
|
begin
|
|
|
|
end;
|
|
|
|
var
|
|
t: TTest;
|
|
begin
|
|
t := [21, 42];
|
|
end.
|