summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/analyzer/warnings/lambda_shadowing_arg.gd
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2023-01-06 17:46:05 +0100
committerGitHub <noreply@github.com>2023-01-06 17:46:05 +0100
commitaf48b296e6724c017271f1efdf587c62861877df (patch)
tree28fe56a853b9700db256b8e034172aef273e4d1a /modules/gdscript/tests/scripts/analyzer/warnings/lambda_shadowing_arg.gd
parentb14f7aa9f92ff44135c283a9c88dab5ef9136d64 (diff)
parent532ffc30bdad3e0f279bbaaeb954ca994f98baa5 (diff)
downloadredot-engine-af48b296e6724c017271f1efdf587c62861877df.tar.gz
Merge pull request #70658 from vonagam/fix-lambdas-typing
GDScript: Fix typing of lambda functions
Diffstat (limited to 'modules/gdscript/tests/scripts/analyzer/warnings/lambda_shadowing_arg.gd')
-rw-r--r--modules/gdscript/tests/scripts/analyzer/warnings/lambda_shadowing_arg.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/analyzer/warnings/lambda_shadowing_arg.gd b/modules/gdscript/tests/scripts/analyzer/warnings/lambda_shadowing_arg.gd
new file mode 100644
index 0000000000..939496324c
--- /dev/null
+++ b/modules/gdscript/tests/scripts/analyzer/warnings/lambda_shadowing_arg.gd
@@ -0,0 +1,6 @@
+var shadow: int
+
+func test():
+ var lambda := func(shadow: String) -> void:
+ print(shadow)
+ lambda.call('shadow')