godot/modules/gdscript/tests/scripts/analyzer/warnings/lambda_shadowing_arg.gd

7 lines
114 B
GDScript

var shadow: int
func test():
var lambda := func(shadow: String) -> void:
print(shadow)
lambda.call('shadow')