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/Parser.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/Parser/Parser.cc') diff --git a/lib/Parser/Parser.cc b/lib/Parser/Parser.cc index afe0e80..48f4df4 100644 --- a/lib/Parser/Parser.cc +++ b/lib/Parser/Parser.cc @@ -299,6 +299,12 @@ std::unique_ptr Parser::ParseAssignStmt() { getNextToken(); auto Args = ParseExprList(')', true); if (!Args) return nullptr; + if (CurTok == '.') { + auto Result = ParseResultMethods(std::make_unique(Name, std::move(*Args), Line), Line); + if (!Result) return nullptr; + return std::make_unique( + std::unique_ptr(static_cast(Result.release()))); + } return std::make_unique(Name, std::move(*Args), Line); } -- cgit v1.3.1-4-g156e