Generics forward declaration of class and "Identifier not found"
Original Reporter info from Mantis: hnb
-
Reporter name: Maciej Izak
Original Reporter info from Mantis: hnb
- Reporter name: Maciej Izak
Description:
For attached code I have error 'Identifier not found "T"'
type
TA<T> = class; // forward declaration for TB
TB<T> = class
FA: TA<T>;
end;
TC<T> = record
end;
TA<T> = class
FB: TB<T>;
FC: TC<T>; // !ERROR! Identifier not found "T"
// if you comment formward declaration of TA,
// and declaration of field FB and type TB then it's working
end;
Mantis conversion info:
- Mantis ID: 24097
- Version: 2.7.1