Method/property declarations should not be allowed in anonymous record or local record types
Original Reporter info from Mantis: Penilopa P
-
Reporter name: Anton
Original Reporter info from Mantis: Penilopa P
- Reporter name: Anton
Description:
Try to compile the attached program =>
test.pp(13,3) Fatal: Internal error 200309281
But compilation will be successful if line num. 13 will be commented.
When ADVANCEDRECORDS modeswitch is in use compiler should allow to declare only fields for record types that are declared in local scopes or declared in-place in variable declarations (anonymous records). It would by nice to get nice error message in compiling time ("method declaration not allowed here")
Mantis conversion info:
- Mantis ID: 23000
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 23421 (#3a3c10a4)