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:
parent
df9dae2408
commit
24bcbe971a
3 changed files with 27 additions and 4 deletions
|
|
@ -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
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
GDTEST_OK
|
||||
okay
|
||||
Loading…
Add table
Add a link
Reference in a new issue