mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
when_branch_mismatch
This commit is contained in:
parent
98479511f5
commit
200adae507
3 changed files with 94 additions and 30 deletions
|
@ -539,7 +539,11 @@ pub fn constrain_expr(
|
|||
cond_type.clone(),
|
||||
region,
|
||||
),
|
||||
ForReason(Reason::WhenBranch { index }, branch_type.clone(), region),
|
||||
ForReason(
|
||||
Reason::WhenBranch { index },
|
||||
branch_type.clone(),
|
||||
when_branch.value.region,
|
||||
),
|
||||
);
|
||||
|
||||
branch_cons.push(branch_con);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue