virtualx-engine/modules/gdscript/tests/scripts/parser/features/lambda_capture_callable.gd

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
92 B
GDScript3
Raw Normal View History

func test():
var x = 42
var my_lambda = func(): print(x)
my_lambda.call() # Prints "42".