godot/modules/gdscript/tests/scripts/parser/errors/lambda_standalone.gd
George Marques 0a28b4cd94
GDScript: Do not allow standalone lambdas
They cannot be accessed in this case, so an error is shown to avoid
misleading the uses, especially in case of named lambdas.
2022-05-23 12:25:03 -03:00

4 lines
62 B
GDScript

func test():
func standalone():
print("can't be accessed")