GDScript: Allow using await on calls to void functions

This commit is contained in:
George Marques 2023-01-09 09:55:05 -03:00
parent a3816434a6
commit a1309f1f42
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D
3 changed files with 12 additions and 3 deletions

View file

@ -0,0 +1,7 @@
func wait() -> void:
pass
func test():
@warning_ignore(redundant_await)
await wait()
print("end")

View file

@ -0,0 +1,2 @@
GDTEST_OK
end