mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Coalesce one signature type
This commit is contained in:
parent
e0a2139b1e
commit
4bd77250c7
1 changed files with 3 additions and 4 deletions
|
@ -3132,14 +3132,15 @@ fn constraint_recursive_function(
|
||||||
|
|
||||||
flex_info.vars.extend(new_infer_variables);
|
flex_info.vars.extend(new_infer_variables);
|
||||||
|
|
||||||
|
let signature_index = constraints.push_type(signature.clone());
|
||||||
|
|
||||||
let annotation_expected = FromAnnotation(
|
let annotation_expected = FromAnnotation(
|
||||||
loc_pattern,
|
loc_pattern,
|
||||||
arity,
|
arity,
|
||||||
AnnotationSource::TypedBody {
|
AnnotationSource::TypedBody {
|
||||||
region: annotation.region,
|
region: annotation.region,
|
||||||
},
|
},
|
||||||
// TODO coalesce with other signature_index
|
signature_index,
|
||||||
constraints.push_type(signature.clone()),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
let (arg_types, _signature_closure_type, ret_type) = match &signature {
|
let (arg_types, _signature_closure_type, ret_type) = match &signature {
|
||||||
|
@ -3226,8 +3227,6 @@ fn constraint_recursive_function(
|
||||||
|
|
||||||
vars.push(expr_var);
|
vars.push(expr_var);
|
||||||
|
|
||||||
let signature_index = constraints.push_type(signature.clone());
|
|
||||||
|
|
||||||
let state_constraints = constraints.and_constraint(argument_pattern_state.constraints);
|
let state_constraints = constraints.and_constraint(argument_pattern_state.constraints);
|
||||||
let cons = [
|
let cons = [
|
||||||
constraints.let_constraint(
|
constraints.let_constraint(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue