record update value

This commit is contained in:
Folkert 2020-04-04 23:53:25 +02:00
parent f8b3d5dce7
commit 5b0d9e693b
4 changed files with 72 additions and 19 deletions

View file

@ -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))
}