mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Address PR comments, add syntax tests
This commit is contained in:
parent
b3e60f9d3a
commit
7518a2c5ab
28 changed files with 772 additions and 34 deletions
|
@ -136,7 +136,7 @@ fn constrain_untyped_closure(
|
|||
vars.push(fn_var);
|
||||
|
||||
let body_type = constraints.push_expected_type(ForReason(
|
||||
Reason::Return,
|
||||
Reason::FunctionOutput,
|
||||
return_type_index,
|
||||
loc_body_expr.region,
|
||||
));
|
||||
|
@ -1409,7 +1409,7 @@ pub fn constrain_expr(
|
|||
let return_type_index = constraints.push_variable(*return_var);
|
||||
|
||||
let expected_return_value = constraints.push_expected_type(ForReason(
|
||||
Reason::Return,
|
||||
Reason::FunctionOutput,
|
||||
return_type_index,
|
||||
return_value.region,
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue