Compiler allows casting Method of object to class reference
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
Attached program compiles with latest FPC but should NOT.
And obviously crashes when run.
Delphi does not compile attached code
Error: Not enough actual parameters
Steps to reproduce:
Compile and run attached project
Mantis conversion info:
- Mantis ID: 15140
- OS: Debian GNU/Linux
- OS Build: squeeze
- Build: 14216
- Platform: x86_64
- Version: 2.5.1