var f; { var a = "a"; fun f_() { print a; print a; } f = f_; } f(); // expect: a // expect: a