Fix removing extra width warnings after another error

This commit is contained in:
Wilson Snyder
2026-08-31 18:04:58 -04:00
parent be83d1393d
commit 1c2fa7234d
8 changed files with 34 additions and 14 deletions
+1 -1
View File
@@ -3590,7 +3590,7 @@ class LinkDotResolveVisitor final : public VNVisitor {
if (oldp->wouldBreak(newp)) {
newp->v3error(
"Data type used where a non-data type is expected: " << newp->prettyNameQ());
oldp->replaceWith(new AstConst{newp->fileline(), AstConst::BitFalse{}});
oldp->replaceWith(new AstConst{newp->fileline(), AstConst::BitFalseErroring{}});
} else {
oldp->replaceWith(newp);
}