Fix unquoted name in dtype errors.

This commit is contained in:
Wilson Snyder 2022-11-27 05:59:40 -05:00
parent 833780fac1
commit d8071819fc
2 changed files with 2 additions and 2 deletions

View File

@ -1073,7 +1073,7 @@ public:
void dumpSmall(std::ostream& str) const override;
string name() const override { return m_name; }
string prettyDTypeName() const override {
return subDTypep() ? subDTypep()->name() : prettyName();
return subDTypep() ? prettyName(subDTypep()->name()) : prettyName();
}
AstBasicDType* basicp() const override VL_MT_SAFE {
return subDTypep() ? subDTypep()->basicp() : nullptr;

View File

@ -11,7 +11,7 @@
: ... In instance t
14 | rand int unpackarr[5];
| ^~~~~~~~~
%Error-UNSUPPORTED: t/t_randomize_method_types_unsup.v:15:15: Unsupported: random member variables with type '__024unit::Union'
%Error-UNSUPPORTED: t/t_randomize_method_types_unsup.v:15:15: Unsupported: random member variables with type '$unit::Union'
: ... In instance t
15 | rand Union uni;
| ^~~