do nothing, prepare for refactor

This commit is contained in:
Folkert 2022-03-11 21:03:55 +01:00
parent afcd176d58
commit 18d7f32aa3
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -241,22 +241,7 @@ pub fn pre_constrain_imports(
storage_subs,
stored_vars_by_symbol,
}) => {
// If the exposed value was invalid (e.g. it didn't have
// a corresponding definition), it won't have an entry
// in solved_types
if let Some(solved_type) = solved_types.get(&symbol) {
// TODO should this be a union?
for (k, v) in new_aliases.clone() {
imported_aliases.insert(k, v);
}
continue;
imported_symbols.push(Import {
loc_symbol,
solved_type: solved_type.clone(),
});
}
// do nothing, basically
}
Some(ExposedModuleTypes::Invalid) => {
// If that module was invalid, use True constraints