make sure aliases are added to the scope

This commit is contained in:
Folkert 2020-10-24 01:20:22 +02:00
parent 2c0416907c
commit c05ae4929f

View file

@ -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 {
region: ann.region,
vars: can_vars,
uniqueness: None,
typ: can_ann.typ,
};
aliases.insert(symbol, alias);
}
other => value_defs.push(other),