GDScript: Don't show redundant await warning on unknown types

Also avoid it when the type is known to be a signal.
This commit is contained in:
George Marques 2022-05-24 13:40:36 -03:00
parent df9dae2408
commit 24bcbe971a
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D
3 changed files with 27 additions and 4 deletions

View file

@ -0,0 +1,12 @@
# https://github.com/godotengine/godot/issues/54589
# https://github.com/godotengine/godot/issues/56265
extends Resource
func test():
print("okay")
await self.changed
await unknown(self)
func unknown(arg):
await arg.changed

View file

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