summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser/errors
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2023-01-31 10:30:44 +0100
committerJuan Linietsky <reduzio@gmail.com>2023-01-31 12:43:25 +0100
commit1bbe0a2b2f612875c9bda4b0bb23fcefc23ff9e4 (patch)
tree2d4bf6a1da704b05d79b9e82fa7b55ed0992f8a2 /modules/gdscript/tests/scripts/parser/errors
parente9de988020f3d46c3e7b4fd5a8a80724996035e0 (diff)
Fix global script class parsing.
* Broke with #72226 * Restored previous version of the code, made it even more error tolerant. * Added a warning to **not** change the code. Fixes #72226.
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/errors')
-rw-r--r--modules/gdscript/tests/scripts/parser/errors/class_name_after_annotation.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/tests/scripts/parser/errors/class_name_after_annotation.gd b/modules/gdscript/tests/scripts/parser/errors/class_name_after_annotation.gd
index 0085b3f367..2470fe978e 100644
--- a/modules/gdscript/tests/scripts/parser/errors/class_name_after_annotation.gd
+++ b/modules/gdscript/tests/scripts/parser/errors/class_name_after_annotation.gd
@@ -1,5 +1,5 @@
# Error here. Annotations should be used before `class_name`, not after.
-class_name HelloWorld
+class_name WrongAnnotationPlace
@icon("res://path/to/optional/icon.svg")
func test():