mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +00:00
parent
35d6da391b
commit
399319dc1c
@ -2121,6 +2121,10 @@ private:
|
||||
v3Global.rootp()->typeTablep()->addTypesp(newp);
|
||||
}
|
||||
}
|
||||
if (AstWildcardArrayDType* const wildp
|
||||
= VN_CAST(nodep->dtypeSkipRefp(), WildcardArrayDType)) {
|
||||
nodep->dtypep(wildp); // Skip RefDType like for other dynamic array types
|
||||
}
|
||||
if (VN_IS(nodep->dtypep()->skipRefToConstp(), ConstDType)) nodep->isConst(true);
|
||||
// Parameters if implicit untyped inherit from what they are assigned to
|
||||
const AstBasicDType* const bdtypep = VN_CAST(nodep->dtypep(), BasicDType);
|
||||
|
@ -22,10 +22,15 @@ module t (/*AUTOARG*/
|
||||
cyc <= cyc + 1;
|
||||
begin
|
||||
// Wildcard
|
||||
typedef string dict_t [*];
|
||||
string a [*] = '{default: "nope", "BBBBB": "fooing", 23'h434343: "baring"};
|
||||
dict_t b = '{default: "nope", "BBBBB": "fooing", 23'h434343: "baring"};
|
||||
int k;
|
||||
string v;
|
||||
|
||||
v = b["CCC"]; `checks(v, "baring");
|
||||
v = b["BBBBB"]; `checks(v, "fooing");
|
||||
|
||||
v = a["CCC"]; `checks(v, "baring");
|
||||
v = a["BBBBB"]; `checks(v, "fooing");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user