mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Canonicalize multiple abilities bound to a type variable
This commit is contained in:
parent
97dbac1631
commit
6bb97c92b9
9 changed files with 84 additions and 77 deletions
|
@ -136,7 +136,7 @@ pub struct Module {
|
|||
#[derive(Debug, Default)]
|
||||
pub struct RigidVariables {
|
||||
pub named: MutMap<Variable, Lowercase>,
|
||||
pub able: MutMap<Variable, (Lowercase, Symbol)>,
|
||||
pub able: MutMap<Variable, (Lowercase, Vec<Symbol>)>,
|
||||
pub wildcards: VecSet<Variable>,
|
||||
}
|
||||
|
||||
|
@ -387,7 +387,7 @@ pub fn canonicalize_module_defs<'a>(
|
|||
for able in output.introduced_variables.able {
|
||||
rigid_variables
|
||||
.able
|
||||
.insert(able.variable, (able.name, able.ability));
|
||||
.insert(able.variable, (able.name, able.abilities));
|
||||
}
|
||||
|
||||
for var in output.introduced_variables.wildcards {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue