Cannot link packages which defined unused generics
Original Reporter info from Mantis: sysrpl
-
Reporter name: Anthony Walter
Original Reporter info from Mantis: sysrpl
- Reporter name: Anthony Walter
Description:
The compile cannot link to packages which define generics types which are not used by the package which defines them
Example unused generic type in new unit GenericTypes.pas:
type TSimpleGeneric&LtPos;A, B> = function(constref Value: A): B;
Steps to reproduce:
- Create a new package
- Add a new unit to the package
- Define a generic type in the unit:
type TSimpleGeneric<A, B> = function(constref Value: A): B;
- Compile the new package
- Start new project
- Add a reference to the new package and unit
- Try to compile the new project
Mantis conversion info:
- Mantis ID: 28766
- OS: Ubuntu
- OS Build: 14.04
- Build: trunk
- Platform: Linux
- Version: 3.1.1
- Fixed in version: 3.1.1
- Fixed in revision: 31911 (#3afc18f2)