mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
make sure aliases are added to the scope
This commit is contained in:
parent
2c0416907c
commit
c05ae4929f
1 changed files with 3 additions and 0 deletions
|
@ -280,12 +280,15 @@ pub fn canonicalize_defs<'a>(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
scope.add_alias(symbol, ann.region, can_vars.clone(), can_ann.typ.clone());
|
||||||
|
|
||||||
let alias = roc_types::types::Alias {
|
let alias = roc_types::types::Alias {
|
||||||
region: ann.region,
|
region: ann.region,
|
||||||
vars: can_vars,
|
vars: can_vars,
|
||||||
uniqueness: None,
|
uniqueness: None,
|
||||||
typ: can_ann.typ,
|
typ: can_ann.typ,
|
||||||
};
|
};
|
||||||
|
|
||||||
aliases.insert(symbol, alias);
|
aliases.insert(symbol, alias);
|
||||||
}
|
}
|
||||||
other => value_defs.push(other),
|
other => value_defs.push(other),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue