expand aliases before/during canonicalization

This commit is contained in:
Folkert 2020-10-29 22:32:38 +01:00
parent 33ac8f6892
commit b75880bed2
4 changed files with 37 additions and 22 deletions

View file

@ -53,7 +53,7 @@ pub fn canonicalize_module_defs<'a>(
var_store: &mut VarStore,
) -> Result<ModuleOutput, RuntimeError> {
let mut can_exposed_imports = MutMap::default();
let mut scope = Scope::new(home);
let mut scope = Scope::new(home, var_store);
let num_deps = dep_idents.len();
// Desugar operators (convert them to Apply calls, taking into account