1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

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.
This commit is contained in:
Juan Linietsky
2023-01-31 10:30:44 +01:00
parent e9de988020
commit 1bbe0a2b2f
2 changed files with 83 additions and 13 deletions

View File

@@ -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():