mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Fix failing reporting tests
This commit is contained in:
parent
aa50b141f7
commit
c01baa9168
3 changed files with 81 additions and 18 deletions
|
@ -390,6 +390,17 @@ impl WhenBranch {
|
|||
}
|
||||
}
|
||||
|
||||
impl WhenBranch {
|
||||
pub fn region(&self) -> Region {
|
||||
Region::across_all(
|
||||
self.patterns
|
||||
.iter()
|
||||
.map(|p| &p.region)
|
||||
.chain([self.value.region].iter()),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn canonicalize_expr<'a>(
|
||||
env: &mut Env<'a>,
|
||||
var_store: &mut VarStore,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue