In Delphi mode, record parameters are allowed to have default values
Original Reporter info from Mantis: jcchu
-
Reporter name: JC Chu
Original Reporter info from Mantis: jcchu
- Reporter name: JC Chu
Description:
The compiler currently allows record parameters to have default values, which is invalid in Delphi.
◦ Arbitrary simple type constant is accepted.
◦ If the record type has a custom typecast operator, explicit cast expressions are accepted, followed by a crash.
See attached file for demos.
Mantis conversion info:
- Mantis ID: 22343
- OS: Windows NT
- OS Build: 6.1.7601
- Platform: x86_64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 22021 (#aad3ce96)
- Monitored by: » Vincent (Vincent Snijders)