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:
parent
db028ac700
commit
262d6c6bef
4 changed files with 15 additions and 1 deletions
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue