diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2023-01-06 17:46:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-06 17:46:05 +0100 |
commit | af48b296e6724c017271f1efdf587c62861877df (patch) | |
tree | 28fe56a853b9700db256b8e034172aef273e4d1a /modules/gdscript/tests/scripts/analyzer/warnings/lambda_shadowing_arg.gd | |
parent | b14f7aa9f92ff44135c283a9c88dab5ef9136d64 (diff) | |
parent | 532ffc30bdad3e0f279bbaaeb954ca994f98baa5 (diff) | |
download | redot-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.gd | 6 |
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') |