Generic specialization with type constrained with type parameter is not working in Delphi mode
Original Reporter info from Mantis: avagames @avagames
-
Reporter name: George
Original Reporter info from Mantis: avagames @avagames
- Reporter name: George
Description:
See example.
Test2 class is parametrized by T and S which constrained using T.
The code compiles with Delphi 10.3.
Steps to reproduce:
{$mode Delphi}
type
TTest1<T> = class
end;
TTest2<T, S: TTest1<T>> = class //Error: Identifier not found "T"
end;
begin
end.
Mantis conversion info:
- Mantis ID: 36732
- OS: Linux
- OS Build: 18.4
- Platform: x86_64
- Version: 3.0.4