mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
rework how values from a pattern are assigned
This commit is contained in:
parent
f31c116f7c
commit
2467815cef
5 changed files with 219 additions and 89 deletions
|
@ -395,7 +395,6 @@ pub fn build_exp_expr<'a, 'ctx, 'env>(
|
|||
}
|
||||
}
|
||||
|
||||
dbg!(&field_vals);
|
||||
// If the struct has only one field that isn't zero-sized,
|
||||
// unwrap it. This is what the layout expects us to do.
|
||||
if field_vals.len() == 1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue