godot/modules/gdscript/tests/scripts/parser/features/lambda_callable.gd

5 lines
75 B
GDScript

func test():
var my_lambda = func(x):
print(x)
my_lambda.call("hello")