Can't use procedural variables like expressions under TP mode
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
Using FPC 2.0.0, and compiling under TP mode, the compiler fails with the following message:
x.pas(13,4) Error: Boolean expression expected, but got "&LtPos;procedure variable type of function:Boolean;Register>"
This error message results as an example from using a procedural variable (function of type boolean) like a expression, but the same expression is valid in BP/TP7 and was valid in FPC 1.0.10 under TP mode.
Additional information:
Reporter: Nicolas
EMail: nrs1022 at yahoo dot com
Mantis conversion info:
- Mantis ID: 6008
- OS: All
- Fixed in version: 2.0.2