parent
35d6da391b
commit
399319dc1c
|
|
@ -2121,6 +2121,10 @@ private:
|
||||||
v3Global.rootp()->typeTablep()->addTypesp(newp);
|
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);
|
if (VN_IS(nodep->dtypep()->skipRefToConstp(), ConstDType)) nodep->isConst(true);
|
||||||
// Parameters if implicit untyped inherit from what they are assigned to
|
// Parameters if implicit untyped inherit from what they are assigned to
|
||||||
const AstBasicDType* const bdtypep = VN_CAST(nodep->dtypep(), BasicDType);
|
const AstBasicDType* const bdtypep = VN_CAST(nodep->dtypep(), BasicDType);
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,15 @@ module t (/*AUTOARG*/
|
||||||
cyc <= cyc + 1;
|
cyc <= cyc + 1;
|
||||||
begin
|
begin
|
||||||
// Wildcard
|
// Wildcard
|
||||||
|
typedef string dict_t [*];
|
||||||
string a [*] = '{default: "nope", "BBBBB": "fooing", 23'h434343: "baring"};
|
string a [*] = '{default: "nope", "BBBBB": "fooing", 23'h434343: "baring"};
|
||||||
|
dict_t b = '{default: "nope", "BBBBB": "fooing", 23'h434343: "baring"};
|
||||||
int k;
|
int k;
|
||||||
string v;
|
string v;
|
||||||
|
|
||||||
|
v = b["CCC"]; `checks(v, "baring");
|
||||||
|
v = b["BBBBB"]; `checks(v, "fooing");
|
||||||
|
|
||||||
v = a["CCC"]; `checks(v, "baring");
|
v = a["CCC"]; `checks(v, "baring");
|
||||||
v = a["BBBBB"]; `checks(v, "fooing");
|
v = a["BBBBB"]; `checks(v, "fooing");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue