"Internal error 200301042" when try to assign class method of object to a simple procedural variable
Original Reporter info from Mantis: Dmitro25
-
Reporter name: d.v.k@mail.ru
Original Reporter info from Mantis: Dmitro25
- Reporter name: d.v.k@mail.ru
Description:
I came across this problem when I tried to modify an example from the documentation (Free Pascal Reference guide. CHAPTER 5. OBJECTS. Class or static methods).
If I try to assign a regular procedural variable e.g. "P: procedure;" address of the class method of the object, the compiler returns "Internal error 200301042" instead of a message about the signature mismatch. A minimal example is attached to this post.
(By the way, returning to an example from the documentation, after analyzing this example, I came to the conclusion that it needs to be rewritten, in its current form it does more harm than good (I mean the practice of assigning P: = @SomeProcedure (emphasis on operations " @ "))
Steps to reproduce:
Compile an attached project
Mantis conversion info:
- Mantis ID: 36397
- OS: Windows
- OS Build: 10
- Version: 3.0.4
- Fixed in version: 3.3.1
- Fixed in revision: 43650 (#54d3c26e)