You've already forked godot
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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user