From e572d278a44d286c8713d0ee4af9c72a3d1ca73c Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sat, 17 Oct 2026 10:34:37 +0000 Subject: feat(classes): overload methods and NEW constructors Co-Authored-By: Claude Opus 5.5 --- lib/CodeGen/CodeGen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGen.cc') diff --git a/lib/CodeGen/CodeGen.cc b/lib/CodeGen/CodeGen.cc index 9f59a4d..92a52e8 100644 --- a/lib/CodeGen/CodeGen.cc +++ b/lib/CodeGen/CodeGen.cc @@ -288,7 +288,7 @@ void CodeGen::compile(const std::vector &Sources) { if (auto *Class = dynamic_cast(Stmt.get())) { for (const auto &Method : Class->getMethods()) { SaveAndRestore MethodLocation(DiagnosticLine, Method->getLine()); - if (findMethod(Class->getName(), Method->getProto()->getName()) == Method->getProto()) + if (isRegisteredMethod(Class->getName(), Method->getProto())) FuncGen->emitPrototype(Method->getProto()); } } -- cgit v1.3.1-4-g156e