GDScript: Fix lambda captures in default argument values

This commit is contained in:
George Marques 2022-05-23 21:38:31 -03:00
parent 969f1980d2
commit 1b76a9d705
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D
3 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# https://github.com/godotengine/godot/issues/56751
func test():
var x = "local"
var lambda = func(param = x):
print(param)
lambda.call()

View file

@ -0,0 +1,2 @@
GDTEST_OK
local