mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Surface constrain_expr takes an index
This commit is contained in:
parent
9abed3472a
commit
4e2eb67ff1
3 changed files with 82 additions and 52 deletions
|
@ -467,11 +467,11 @@ pub fn constrain_pattern(
|
|||
|
||||
state.vars.push(*expr_var);
|
||||
|
||||
let expr_expected = Expected::ForReason(
|
||||
let expr_expected = constraints.push_expected_type(Expected::ForReason(
|
||||
Reason::RecordDefaultField(label.clone()),
|
||||
pat_type_index,
|
||||
loc_expr.region,
|
||||
);
|
||||
));
|
||||
|
||||
let expr_con = constrain_expr(
|
||||
constraints,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue