Example6 of typinfo docs does not compile
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
Example6 of typinfo unit does not compile. It gives a
example6.pas(69,11) Error: Illegal type conversion: "&LtPos;procedure variable type of procedure(TObject) of object;Register>" to "^untyped"
example6.pas(78,11) Error: Illegal type conversion: "&LtPos;procedure variable type of procedure(TObject) of object;Register>" to "^untyped"
When changing compiler mode to DELPHI and removing a few @ operators, it works fine.
Problem is that I can't make it work in OBJFPC mode at all.
Additional information:
Reporter: Thomas Schatzl
EMail:
Mantis conversion info:
- Mantis ID: 5793
- OS: Win32
- Version: 1.9.8
- Fixed in version: 1.9.9