summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/features/lambda_callable.gd
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features/lambda_callable.gd')
-rw-r--r--modules/gdscript/tests/scripts/parser/features/lambda_callable.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/lambda_callable.gd b/modules/gdscript/tests/scripts/parser/features/lambda_callable.gd
new file mode 100644
index 0000000000..c3b2506156
--- /dev/null
+++ b/modules/gdscript/tests/scripts/parser/features/lambda_callable.gd
@@ -0,0 +1,4 @@
+func test():
+ var my_lambda = func(x):
+ print(x)
+ my_lambda.call("hello")