"Error: expected ;, but experimental found" for initialized variables
Original Reporter info from Mantis: eugeneloza @EugeneLoza
-
Reporter name:
Original Reporter info from Mantis: eugeneloza @EugeneLoza
- Reporter name:
Description:
Code completion/hints do not work with experimental
keyword for initialized variables. If any unit in Uses section has an initialized variable declared as experimental
all variables stop being recognized - hints for variables/methods are not shown, ctrl+click to jump to declaration doesn't work, and all the code will be treated as having a parsing error in Editor. The program, however, compiles and runs without any issues.
Steps to reproduce:
- File -> New -> Simple Program
- Add (or just use the sample project attached):
var
E: Boolean = false experimental;
- Try to write something in the code below accessing variables, like
WriteLn(E)
orE.
- and the error will pop up in Messages; Hints or code completion won't be displayed, ctrl+click won't work anymore.
Note, that
var
E: Boolean experimental;
works without any issues. The error concerns only initialized variables of any type (tested with `Boolean`, `Single`, `Integer`, `String`).
Additional information:
Free Pascal Compiler version 3.3.1-r43045 [2019/09/21] for x86_64
Might be related to https://bugs.freepascal.org/view.php?id=27275
Mantis conversion info:
- Mantis ID: 36099
- Assignee Gitlab user: @PascalRiekenberg
- Assignee Mantis username: PascalR
- Assignee name: Pascal Riekenberg
- OS: Debian
- OS Build: 9.9 64bit
- Build: 61908
- Platform: AMD 64
- Version: 2.1 (SVN)
- Monitored by: » @EugeneLoza (eugeneloza)