mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-24 20:42:29 +00:00
Coalesce return type annotation in function def constraining
This commit is contained in:
parent
db9b29f0c8
commit
a589fbb9e7
1 changed files with 1 additions and 2 deletions
|
@ -1692,8 +1692,7 @@ fn constrain_function_def(
|
|||
AnnotationSource::TypedBody {
|
||||
region: annotation.region,
|
||||
},
|
||||
// TODO coalesce with other ret_type index
|
||||
constraints.push_type(ret_type.clone()),
|
||||
ret_type_index,
|
||||
);
|
||||
|
||||
let ret_constraint = constrain_expr(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue