summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/features/signal_declaration.gd
diff options
context:
space:
mode:
authorDanil Alexeev <danil@alexeev.xyz>2024-02-28 17:23:11 +0300
committerDanil Alexeev <danil@alexeev.xyz>2024-03-12 19:00:06 +0300
commitef1909fca33847831a858b20ea11bf17924e40b3 (patch)
tree677c62633255f1c0db339ecd5547982b1304df43 /modules/gdscript/tests/scripts/parser/features/signal_declaration.gd
parent61282068f4d59cb48f35ad95391728c58d9008ab (diff)
downloadredot-engine-ef1909fca33847831a858b20ea11bf17924e40b3.tar.gz
GDScript: Fix `@warning_ignore` annotation issues
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features/signal_declaration.gd')
-rw-r--r--modules/gdscript/tests/scripts/parser/features/signal_declaration.gd12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/signal_declaration.gd b/modules/gdscript/tests/scripts/parser/features/signal_declaration.gd
index e4d6a72f90..d02f82d417 100644
--- a/modules/gdscript/tests/scripts/parser/features/signal_declaration.gd
+++ b/modules/gdscript/tests/scripts/parser/features/signal_declaration.gd
@@ -1,5 +1,3 @@
-#GDTEST_OK
-
# No parentheses.
signal a
@@ -16,5 +14,15 @@ signal d(
c,
)
+# 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")