"Can't take the address of constant expressions" error issued for a type mismatch when using procedure vars
Original Reporter info from Mantis: ludob
-
Reporter name: Ludo Brands
Original Reporter info from Mantis: ludob
- Reporter name: Ludo Brands
Description:
The compiler error "Call by var for arg no. x has to match exactly: Got "aa" expected "bb"" becomes "Can't take the address of constant expressions" when using procedure variables and passing ^ parameters. The latter is obviously wrong and misleading.
Steps to reproduce:
Compile attached program.
Mantis conversion info:
- Mantis ID: 21072
- OS: windows
- Build: 19992
- Version: 2.7.1