diff options
Diffstat (limited to 'modules/gdscript/tests/scripts/parser-features/trailing-comma-in-function-args.gd')
-rw-r--r-- | modules/gdscript/tests/scripts/parser-features/trailing-comma-in-function-args.gd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser-features/trailing-comma-in-function-args.gd b/modules/gdscript/tests/scripts/parser-features/trailing-comma-in-function-args.gd new file mode 100644 index 0000000000..6097b11b10 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser-features/trailing-comma-in-function-args.gd @@ -0,0 +1,7 @@ +# See https://github.com/godotengine/godot/issues/41066. + +func f(p, ): ## <-- no errors + print(p) + +func test(): + f(0, ) ## <-- no error |