rlox/interpreter/tests/lox/closure/close_over_function_parameter.lox

11 lines
108 B
Lox
Raw Normal View History

2024-09-01 19:15:55 +02:00
var f;
fun foo(param) {
fun f_() {
print param;
}
f = f_;
}
foo("param");
f(); // expect: param