pascalabcnet/TestSuite/errors/err0369_where.pas
2022-09-27 18:29:49 +03:00

15 lines
286 B
ObjectPascal

//!Невозможно инстанцировать, так как тип T не наследован от List<integer>
type
t1<T> = class
where T: List<integer>;
end;
t2<T> = class(t1<T>)
where T: List<real>, constructor;
end;
begin
Assert(1=1)
end.