class Test1 { __str__() { fun nested() { fun inner() { return "Apple"; } return inner(); } return nested(); } } class Test2 {} var inst1 = Test1(); var inst2 = Test2(); print(inst1); # expect: Apple print(inst2); # expect: