mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Generalize return vars
This commit is contained in:
parent
8b9f122047
commit
febe95c228
2 changed files with 23 additions and 2 deletions
|
@ -1438,14 +1438,16 @@ pub fn constrain_expr(
|
|||
return_value.region,
|
||||
));
|
||||
|
||||
constrain_expr(
|
||||
let return_con = constrain_expr(
|
||||
types,
|
||||
constraints,
|
||||
env,
|
||||
return_value.region,
|
||||
&return_value.value,
|
||||
expected_return_value,
|
||||
)
|
||||
);
|
||||
|
||||
constraints.exists([*return_var], return_con)
|
||||
}
|
||||
Tag {
|
||||
tag_union_var: variant_var,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue