Add error on mismatching prototypes (#6207).

This commit is contained in:
Wilson Snyder
2025-08-11 19:50:47 -04:00
parent 762c5f573c
commit 60cbbf0ec1
18 changed files with 340 additions and 42 deletions
+11
View File
@@ -168,6 +168,17 @@ private:
}
}
}
void visit(AstAttrOf* nodep) override {
switch (nodep->attrType()) {
case VAttrType::FUNC_ARG_PROTO: // FALLTHRU
case VAttrType::FUNC_RETURN_PROTO:
VL_DO_DANGLING(pushDeletep(nodep->unlinkFrBack()), nodep);
return;
default:;
}
iterateChildren(nodep);
editDType(nodep);
}
void visit(AstClassExtends* nodep) override {
if (nodep->user1SetOnce()) return; // Process once
// Extend arguments were converted to super.new arguments in V3LinkDot