pascalabcnet/TestSuite/genericrecords3.pas

13 lines
150 B
ObjectPascal
Raw Permalink Normal View History

2021-12-29 14:24:38 +03:00
type
t1 = class end;
t2<T> = record
where T: t1;
a: T;
end;
begin
var r: t2<t1>;
r.a := new t1;
assert(r.a <> nil);
end.