Compiler directive function "declared()" does not work correctly
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
The compiler directive function "declared()" (see https://freepascal.org/docs-html/current/prog/progsu127.html#x140-1410002.4.1 ) does not handle any identifiers correctly. See attached example that compiles correctly with FPC (with variations of the NO_* defines set), but not with pas2js, which always returns with the error "p2jtests\tdeclared.pp(43,26) Error: "function" expected, but ")" found".
Mantis conversion info:
- Mantis ID: 37238
- OS: Win64
- OS Build: NT 6.1 (7)
- Build: 776
- Platform: x86_64
- Version: trunk