mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
actually infer the size
This commit is contained in:
parent
c00cd2f415
commit
e9f5c1a73c
8 changed files with 51 additions and 25 deletions
|
@ -961,6 +961,7 @@ pub fn constrain_decls(
|
|||
Vec::new(),
|
||||
constrain_def(&env, def, constraint),
|
||||
);
|
||||
debug_assert!(format!("{:?}", &constraint).contains("SaveTheEnvironment"));
|
||||
}
|
||||
Declaration::DeclareRec(defs) => {
|
||||
constraint = exists_with_aliases(
|
||||
|
@ -968,6 +969,7 @@ pub fn constrain_decls(
|
|||
Vec::new(),
|
||||
constrain_recursive_defs(&env, defs, constraint),
|
||||
);
|
||||
debug_assert!(format!("{:?}", &constraint).contains("SaveTheEnvironment"));
|
||||
}
|
||||
Declaration::InvalidCycle(_, _) => {
|
||||
// invalid cycles give a canonicalization error. we skip them here.
|
||||
|
@ -976,6 +978,7 @@ pub fn constrain_decls(
|
|||
}
|
||||
}
|
||||
|
||||
debug_assert!(format!("{:?}", &constraint).contains("SaveTheEnvironment"));
|
||||
constraint
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue