mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +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 = {
|
let branches_region = {
|
||||||
debug_assert!(!branches.is_empty());
|
debug_assert!(!branches.is_empty());
|
||||||
Region::span_across(
|
Region::span_across(&loc_cond.region, &branches.last().unwrap().value.region)
|
||||||
&loc_cond.region,
|
|
||||||
// &branches.first().unwrap().region(),
|
|
||||||
&branches.last().unwrap().pattern_region(),
|
|
||||||
)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let branch_expr_reason =
|
let branch_expr_reason =
|
||||||
|
|
|
@ -10375,6 +10375,7 @@ All branches in an `if` must have the same type!
|
||||||
8│ Ok "foo"
|
8│ Ok "foo"
|
||||||
9│
|
9│
|
||||||
10│ Bad _ ->
|
10│ Bad _ ->
|
||||||
|
11│ Ok "foo"
|
||||||
|
|
||||||
This `u8` value is a:
|
This `u8` value is a:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue