mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
record update value
This commit is contained in:
parent
f8b3d5dce7
commit
5b0d9e693b
4 changed files with 72 additions and 19 deletions
|
@ -181,9 +181,10 @@ pub fn constrain_expr(
|
|||
region,
|
||||
);
|
||||
|
||||
cons.push(con);
|
||||
cons.push(fields_con);
|
||||
cons.push(record_con);
|
||||
// ensure constraints are solved in this order, gives better errors
|
||||
cons.insert(0, fields_con);
|
||||
cons.insert(1, con);
|
||||
cons.insert(2, record_con);
|
||||
|
||||
exists(vars, And(cons))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue