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