var f; var g; { var local = "local"; fun f_() { print(local); local = 3; print(local); } f = f_; fun g_() { print(local); local = 15.0; print(local); } g = g_; } f(); # expect: local # expect: 3 g(); # expect: 3 # expect: 15.0