use all aliases that are in scope (to support imported aliases)

This commit is contained in:
Folkert 2022-03-18 20:44:13 +01:00
parent 5196ae9df2
commit bf063d1d57
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 38 additions and 11 deletions

View file

@ -500,7 +500,7 @@ pub fn canonicalize_module_defs<'a>(
}
}
Ok(ModuleOutput {
let output = ModuleOutput {
scope,
aliases,
rigid_variables,
@ -511,7 +511,9 @@ pub fn canonicalize_module_defs<'a>(
problems: env.problems,
lookups,
ident_ids: env.ident_ids,
})
};
Ok(output)
}
(Err(runtime_error), _) => Err(runtime_error),
}