mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
report circular type error
This commit is contained in:
parent
8642cfeae0
commit
2e822e739f
5 changed files with 304 additions and 42 deletions
|
@ -437,7 +437,7 @@ pub fn constrain_expr(
|
|||
ForReason(
|
||||
Reason::IfBranch { index: index + 1 },
|
||||
Type::Variable(*branch_var),
|
||||
region,
|
||||
loc_body.region,
|
||||
),
|
||||
);
|
||||
|
||||
|
@ -453,7 +453,7 @@ pub fn constrain_expr(
|
|||
index: branches.len() + 1,
|
||||
},
|
||||
Type::Variable(*branch_var),
|
||||
region,
|
||||
final_else.region,
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue