Generics template needs Self type reference
Original Reporter info from Mantis: Micha
-
Reporter name: Micha Nelissen
Original Reporter info from Mantis: Micha
- Reporter name: Micha Nelissen
Description:
To implement TFPGList.Assign, I need a to be able to reference to a specialized TFPGList of the same type.
It's the generic equivalent of:
TList = class
procedure Assign(Source: TList);
end;
See, I can reference to TList here although it's not fully declared yet.
The compiler now complains with:
fgl.pp(110,38) Error: Generics without specialization can not be used as a type for a variable
Mantis conversion info:
- Mantis ID: 11777
- Version: 2.3.1
- Fixed in version: 2.6.0
- Fixed in revision: 16432 (#cc0be1be)
- Monitored by: » mdevils (mdevils)