mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41: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 {
|
||||
region: ann.region,
|
||||
vars: can_vars,
|
||||
uniqueness: None,
|
||||
typ: can_ann.typ,
|
||||
};
|
||||
|
||||
aliases.insert(symbol, alias);
|
||||
}
|
||||
other => value_defs.push(other),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue