Types with finalization should be denied in typed files.
Original Reporter info from Mantis: Gorelkin
-
Reporter name: Sergei Gorelkin
Original Reporter info from Mantis: Gorelkin
- Reporter name: Sergei Gorelkin
Description:
See the attached example: Delphi rejects it with a message `Type 'trec' needs finalization - not allowed in file type', FPC does not. But it is anyway impossible to correctly write stuff like AnsiString into a typed file.
This kind of bug hits the beginners pretty hard, because they don't yet understand the effect of {h+} state, and IDEs insert {
H+} everywhere.
Mantis conversion info:
- Mantis ID: 15447
- Platform: all
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 14509 (#dd94f5cf)