mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
add from annotation cases
This commit is contained in:
parent
67f8f2e943
commit
02e42b0abc
3 changed files with 159 additions and 8 deletions
|
@ -512,7 +512,7 @@ pub fn constrain_expr(
|
|||
for (index, when_branch) in branches.iter().enumerate() {
|
||||
let branch_con = constrain_when_branch(
|
||||
env,
|
||||
region,
|
||||
when_branch.value.region,
|
||||
when_branch,
|
||||
PExpected::ForReason(
|
||||
PReason::WhenMatch { index },
|
||||
|
@ -522,7 +522,7 @@ pub fn constrain_expr(
|
|||
FromAnnotation(
|
||||
name.clone(),
|
||||
*arity,
|
||||
TypedWhenBranch(index),
|
||||
TypedWhenBranch(index + 1),
|
||||
typ.clone(),
|
||||
),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue