GDScript: Add @warning_ignore_start and @warning_ignore_restore annotations
This commit is contained in:
parent
eb5103093c
commit
7d65d0a908
22 changed files with 221 additions and 89 deletions
|
|
@ -1,3 +1,5 @@
|
|||
@warning_ignore_start("unused_signal")
|
||||
|
||||
# No parentheses.
|
||||
signal a
|
||||
|
||||
|
|
@ -17,12 +19,5 @@ signal d(
|
|||
# With type hints.
|
||||
signal e(a: int, b: Variant, c: Node)
|
||||
|
||||
func no_exec():
|
||||
a.emit()
|
||||
b.emit()
|
||||
c.emit()
|
||||
d.emit()
|
||||
e.emit()
|
||||
|
||||
func test():
|
||||
print("Ok")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue