We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v4.0.dev.custom_build.3bebbcacd
manjaro linux
This script raises parse error:
pass;pass # ok @onready var x;pass # ok @onready;var y;pass # no-ok
So it looks like the standalone annotation being a part of the semicolon-separated statement list is not handled.
Details:
$ cat tests/potential-godot-bugs/annotation-w-semicolon-corner-case.gd pass;pass # ok @onready var x;pass # ok @onready;var y;pass # no-ok $ godot4 --headless --check-only -s tests/potential-godot-bugs/annotation-w-semicolon-corner-case.gd Godot Engine v4.0.dev.custom_build.3bebbcacd - https://godotengine.org ERROR: Parse Error: Unexpected ";" in class body. at: GDScript::reload (res://tests/potential-godot-bugs/annotation-w-semicolon-corner-case.gd:3) ERROR: Method/function failed. Returning: ERR_PARSE_ERROR at: reload (modules/gdscript/gdscript.cpp:839)
Execute the above
No response
The text was updated successfully, but these errors were encountered:
Add parser support for semicolons after annotation, fixes godotengine…
46d2fd5
…#54280
Successfully merging a pull request may close this issue.
Godot version
v4.0.dev.custom_build.3bebbcacd
System information
manjaro linux
Issue description
This script raises parse error:
So it looks like the standalone annotation being a part of the semicolon-separated statement list is not handled.
Details:
Steps to reproduce
Execute the above
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: