1
0
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:
George Marques
2021-09-21 14:38:14 -03:00
parent db028ac700
commit 262d6c6bef
4 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
#GDTEST_PARSER_ERROR
signal event
func test():
yield("event")

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
"yield" was removed in Godot 4.0. Use "await" instead.