1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

GDScript: Allow multiple lines in signal parameters declaration

This commit is contained in:
George Marques
2021-09-21 13:40:39 -03:00
parent db028ac700
commit bab0afc821
3 changed files with 26 additions and 1 deletions

View File

@@ -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")

View File

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