godot/modules/gdscript/tests/scripts/parser/features/lambda_capture_callable.gd
Hugo Locurcio c6ca09dc6f
Add more integration tests to the GDScript test suite
This also fixes a typo in the `bitwise_float_right_operand.gd` test.
2021-09-15 19:57:39 +02:00

5 lines
92 B
GDScript

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