GDScript: Allow using await on calls to void functions
This commit is contained in:
parent
a3816434a6
commit
a1309f1f42
3 changed files with 12 additions and 3 deletions
|
|
@ -0,0 +1,7 @@
|
|||
func wait() -> void:
|
||||
pass
|
||||
|
||||
func test():
|
||||
@warning_ignore(redundant_await)
|
||||
await wait()
|
||||
print("end")
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_OK
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue