diff options
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features/lambda_default_parameter_capture.gd')
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/lambda_default_parameter_capture.gd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/lambda_default_parameter_capture.gd b/modules/gdscript/tests/scripts/parser/features/lambda_default_parameter_capture.gd new file mode 100644 index 0000000000..2140b6923e --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/lambda_default_parameter_capture.gd @@ -0,0 +1,7 @@ +# https://github.com/godotengine/godot/issues/56751 + +func test(): + var x = "local" + var lambda = func(param = x): + print(param) + lambda.call() |