From 8ff3f44179cee9bbd524be09bda57d737bdfe6d9 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 25 Dec 2025 17:42:24 +0800 Subject: [PATCH] fix https://github.com/pocketpy/pocketpy/issues/394 --- tests/040_line_continue.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/040_line_continue.py b/tests/040_line_continue.py index f84c8699..699d1c03 100644 --- a/tests/040_line_continue.py +++ b/tests/040_line_continue.py @@ -45,3 +45,22 @@ income = (gross_wages - ira_deduction - student_loan_interest) '''.strip(), 'main.py', 'exec') + +res = [] +class Thing: + def do_a(self): + res.append("A") + return self + def do_b(self): + res.append("B") + return self + def do_c(self): + res.append("C") + return self + +(Thing() + .do_a() + .do_b() + .do_c()) + +assert res == ["A", "B", "C"]