diff options
author | George Marques <george@gmarqu.es> | 2021-09-21 13:40:39 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2021-09-21 13:40:39 -0300 |
commit | bab0afc8219d05b0a13a528ba3873f5d634f3914 (patch) | |
tree | 7cd4021940bba4f9bbbea30753ecf426e128902a /modules/gdscript/tests/scripts/parser | |
parent | db028ac7001cca42c9f61cc231e2363ae884e70a (diff) |
GDScript: Allow multiple lines in signal parameters declaration
Diffstat (limited to 'modules/gdscript/tests/scripts/parser')
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/signal_declaration.gd | 20 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/signal_declaration.out | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/signal_declaration.gd b/modules/gdscript/tests/scripts/parser/features/signal_declaration.gd new file mode 100644 index 0000000000..9ad98b78a8 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/signal_declaration.gd @@ -0,0 +1,20 @@ +#GDTEST_OK + +# No parentheses. +signal a + +# No parameters. +signal b() + +# With paramters. +signal c(a, b, c) + +# With parameters multiline. +signal d( + a, + b, + c, +) + +func test(): + print("Ok") diff --git a/modules/gdscript/tests/scripts/parser/features/signal_declaration.out b/modules/gdscript/tests/scripts/parser/features/signal_declaration.out new file mode 100644 index 0000000000..0e9f482af4 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/signal_declaration.out @@ -0,0 +1,2 @@ +GDTEST_OK +Ok |