You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
GDScript: Show specific error when "yield" is used
To help people porting code, it gives a hint to use "await" instead of a generic error.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
#GDTEST_PARSER_ERROR
|
||||
|
||||
signal event
|
||||
|
||||
func test():
|
||||
yield("event")
|
||||
@@ -0,0 +1,2 @@
|
||||
GDTEST_PARSER_ERROR
|
||||
"yield" was removed in Godot 4.0. Use "await" instead.
|
||||
Reference in New Issue
Block a user