From 4cb0d9b196008bc55dbfcdac1f9211dbbc879895 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Fri, 30 Oct 2026 14:23:32 +0000 Subject: feat(types): support implicit single-argument constructors Co-Authored-By: Claude Opus 5.5 --- include/cps/FunctionAST.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/cps/FunctionAST.h') diff --git a/include/cps/FunctionAST.h b/include/cps/FunctionAST.h index 5280d58..d7fca1a 100644 --- a/include/cps/FunctionAST.h +++ b/include/cps/FunctionAST.h @@ -34,6 +34,7 @@ class PrototypeAST { bool IsOverload; std::string OwnerClass; bool IsPublic; + bool IsImplicit = false; bool IsVariadic = false; bool IsDefaultReturn = false; int Operator = 0; @@ -50,6 +51,8 @@ public: const std::vector &getParams() const { return Params; } const std::string &getReturnType() const { return ReturnType; } bool isOverload() const { return IsOverload; } + bool isImplicit() const { return IsImplicit; } + void setImplicit(bool V) { IsImplicit = V; } bool isDefaultReturn() const { return IsDefaultReturn; } void setDefaultReturn(bool V) { IsDefaultReturn = V; } int getOperator() const { return Operator; } -- cgit v1.3.1-4-g156e