fpc/tests/test/tgeneric26.pp
florian ceda27ae25 * allow type parameters in variant parts of records as we do not now
what type is used during specialization, resolves #39805
2022-06-28 22:45:17 +02:00

15 lines
238 B
ObjectPascal

program tgeneric26;
{$mode objfpc}{$H+}
type
generic TRecArr<T> = array[0..1] of record
case enum:(one, two, three) of
one: (F: T); // can't use type parameter here
two: (Z: T);
three: (Y: T);
end;
begin
end.