Coalesce return type annotation in function def constraining

This commit is contained in:
Ayaz Hafiz 2022-10-25 11:48:10 -05:00
parent db9b29f0c8
commit a589fbb9e7
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -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(