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

17 lines
229 B
ObjectPascal

{ %fail }
program Project1;
{$mode objfpc}{$H+}
const
ts=3;
type
generic GTest<T>=record
case byte of
0:(ta:array [0..2] of T);
1:(t1:T;t2:T;t3:T);
end;
TTestVariant = specialize GTest<Variant>;
begin
end.