mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Smarter about region calculation
This commit is contained in:
parent
1e03ab8fe2
commit
cd89902e7a
2 changed files with 13 additions and 7 deletions
|
@ -596,7 +596,7 @@ pub fn constrain_expr(
|
|||
Region::span_across(
|
||||
&loc_cond.region,
|
||||
// &branches.first().unwrap().region(),
|
||||
&branches.last().unwrap().region(),
|
||||
&branches.last().unwrap().pattern_region(),
|
||||
)
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue