pascalabcnet/TestSuite/where16.pas
2021-09-19 19:31:38 +03:00

20 lines
332 B
ObjectPascal
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

type
c1<T1> = class
where T1: c1<T1>;
end;
//Ошибка: Несоответствие спецификатора whеre спецификатору where базового класса
c2<T2> = class(c1<T2>)
where T2: c1<T2>;
end;
c3 = class(c1<c3>)
end;
begin
new c2<c3>;
new c3;
end.