Elaborate parameter types in the scope of the paramter.

This commit is contained in:
Stephen Williams 2020-12-29 10:29:15 -08:00
parent b7306001ab
commit eaa3a10e8c
1 changed files with 3 additions and 2 deletions

View File

@ -828,9 +828,10 @@ void NetScope::evaluate_parameter_(Design*des, param_ref_t cur)
{
ivl_type_t param_type = cur->second.ivl_type;
// If the parameter type is present, then elaborate it now.
// If the parameter type is present, then elaborate it now. Elaborate
// the type in the current scope, and not the scope of the expression.
if (cur->second.val_type) {
param_type = cur->second.val_type->elaborate_type(des, cur->second.val_scope);
param_type = cur->second.val_type->elaborate_type(des, this);
cur->second.ivl_type = param_type;
cur->second.val_type = 0;
}