1 2 3 4 5 6 7 8 9 10 11 12 13
var f; class Foo { method(param) { fun f_() { print param; } f = f_; } } Foo().method("param"); f(); // expect: param