mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
parent
3ee3f23836
commit
42633c1f96
2 changed files with 2 additions and 5 deletions
|
@ -724,11 +724,7 @@ pub fn constrain_expr(
|
|||
|
||||
let branches_region = {
|
||||
debug_assert!(!branches.is_empty());
|
||||
Region::span_across(
|
||||
&loc_cond.region,
|
||||
// &branches.first().unwrap().region(),
|
||||
&branches.last().unwrap().pattern_region(),
|
||||
)
|
||||
Region::span_across(&loc_cond.region, &branches.last().unwrap().value.region)
|
||||
};
|
||||
|
||||
let branch_expr_reason =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue