mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
constrain the default
This commit is contained in:
parent
29c3eebace
commit
36574e6ff7
2 changed files with 31 additions and 1 deletions
|
@ -246,7 +246,9 @@ pub fn constrain_pattern(
|
|||
|
||||
state.vars.push(*expr_var);
|
||||
|
||||
constrain_expr(env, loc_expr.region, &loc_expr.value, expr_expected);
|
||||
let expr_con =
|
||||
constrain_expr(env, loc_expr.region, &loc_expr.value, expr_expected);
|
||||
state.constraints.push(expr_con);
|
||||
|
||||
RecordField::Optional(pat_type)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue