mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
when_if_guard
This commit is contained in:
parent
671eb0f32e
commit
98479511f5
4 changed files with 85 additions and 6 deletions
|
@ -688,7 +688,7 @@ fn canonicalize_when_branch<'a>(
|
|||
env: &mut Env<'a>,
|
||||
var_store: &VarStore,
|
||||
scope: &mut Scope,
|
||||
region: Region,
|
||||
_region: Region,
|
||||
branch: &'a ast::WhenBranch<'a>,
|
||||
output: &mut Output,
|
||||
) -> (WhenBranch, References) {
|
||||
|
@ -721,7 +721,7 @@ fn canonicalize_when_branch<'a>(
|
|||
None => None,
|
||||
Some(loc_expr) => {
|
||||
let (can_guard, guard_branch_output) =
|
||||
canonicalize_expr(env, var_store, &mut scope, region, &loc_expr.value);
|
||||
canonicalize_expr(env, var_store, &mut scope, loc_expr.region, &loc_expr.value);
|
||||
|
||||
branch_output.union(guard_branch_output);
|
||||
Some(can_guard)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue