In a Delphi mode unit, method code cannot contain the same specialized type that is used in field declarations
Original Reporter info from Mantis: jcchu
-
Reporter name: JC Chu
Original Reporter info from Mantis: jcchu
- Reporter name: JC Chu
Description:
In a Delphi mode unit, if a class has a field of a specialized type, the same specialized type cannot be used, with inline specialization or as a local type, in the class’s methods; the compiler will report the “duplicate identifiers” error.
Steps to reproduce:
See attached file.
Mantis conversion info:
- Mantis ID: 20872
- OS: Windows NT
- OS Build: 6.1.7601
- Platform: x86_64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 19818 (#fca525a8)
- Target version: 2.7.1