Add opt-in GDScript warning for when calling coroutine without await

This commit is contained in:
Mikael Hermansson
2025-06-24 14:43:50 +02:00
parent ebc36a7225
commit a3e58a385f
8 changed files with 29 additions and 2 deletions
@@ -0,0 +1,7 @@
func coroutine() -> void:
@warning_ignore("redundant_await")
await 0
func test():
await coroutine()
coroutine()