From 345e3d419eafb0e234aecb4a33f37efe2afbbf53 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sun, 18 Oct 2026 08:07:50 +0000 Subject: feat(classes): add copy constructors and statement-scoped temporaries Co-Authored-By: Claude Opus 5.5 --- lib/Parser/ParserFunction.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/Parser/ParserFunction.cc') diff --git a/lib/Parser/ParserFunction.cc b/lib/Parser/ParserFunction.cc index dfb689a..65e0b85 100644 --- a/lib/Parser/ParserFunction.cc +++ b/lib/Parser/ParserFunction.cc @@ -374,6 +374,12 @@ std::unique_ptr Parser::ParseCallStmt() { Args = std::move(*Parsed); } + if (CurTok == '.') { + auto Result = ParseResultMethods(std::make_unique(Callee, std::move(Args), Line), Line); + if (!Result) return nullptr; + return std::make_unique( + std::unique_ptr(static_cast(Result.release()))); + } return std::make_unique(Callee, std::move(Args), Line); } -- cgit v1.3.1-4-g156e