summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser/features/lambda_capture_callable.gd
blob: f081a0b6a7564e00ec2b3b7b76da9ec18331f5a4 (plain)
1
2
3
4
func test():
	var x = 42
	var my_lambda = func(): print(x)
	my_lambda.call() # Prints "42".