Fix class new with math.

This commit is contained in:
Wilson Snyder 2020-11-28 12:26:44 -05:00
parent e14319b401
commit 05f3fd7c6e
2 changed files with 1 additions and 2 deletions

View File

@ -3113,7 +3113,6 @@ private:
"Illegal to call 'new' using an abstract virtual class (IEEE 1800-2017 8.21)");
}
userIterate(nodep->taskp(), nullptr);
userIterateChildren(nodep, nullptr);
processFTaskRefArgs(nodep);
}
virtual void visit(AstNewCopy* nodep) override {

View File

@ -29,7 +29,7 @@ module t (/*AUTOARG*/);
c1 = new;
if (c1.imembera != 5) $stop;
c2 = new(2);
c2 = new(3 - 1);
if (c2.imembera != 3) $stop;
if (c2.geta() != 3) $stop;