mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
fix bug with optional record fields
This commit is contained in:
parent
46755973d6
commit
127dd06586
10 changed files with 202 additions and 162 deletions
|
@ -116,7 +116,6 @@ impl<'a> Layout<'a> {
|
|||
Ok(Layout::RecursivePointer)
|
||||
} else {
|
||||
let content = env.subs.get_without_compacting(var).content;
|
||||
// println!("{:?} {:?}", var, &content);
|
||||
Self::new_help(env, content)
|
||||
}
|
||||
}
|
||||
|
@ -527,7 +526,6 @@ pub fn sort_record_fields<'a>(
|
|||
seen: MutSet::default(),
|
||||
};
|
||||
|
||||
dbg!(var);
|
||||
match roc_types::pretty_print::chase_ext_record(subs, var, &mut fields_map) {
|
||||
Ok(()) | Err((_, Content::FlexVar(_))) => {
|
||||
// Sort the fields by label
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue