Coalesce type signature vars in typed def constraining

This commit is contained in:
Ayaz Hafiz 2022-10-25 11:43:17 -05:00
parent 3362763e45
commit ce7648b344
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -2340,7 +2340,6 @@ fn constrain_typed_def(
rigids: ftv,
};
// TODO there is a signature_index below, can we coalesce it here?
let signature_index = constraints.push_type(signature.clone());
let annotation_expected = FromAnnotation(
@ -2456,7 +2455,6 @@ fn constrain_typed_def(
signature_closure_type_index,
))
};
let signature_index = constraints.push_type(signature);
let cons = [
constraints.let_constraint(
[],