class Outer { method() { print this; // out: fun f() { print this; // out: class Inner { method() { print this; // out: } } Inner().method(); } f(); } } Outer().method();