fix: resolve all inference vars in InferenceResult::assoc_resolutions

This commit is contained in:
Ryo Yoshida 2022-12-14 21:56:55 +09:00
parent 4596847a88
commit bb99d2a6fb
No known key found for this signature in database
GPG key ID: E25698A930586171
2 changed files with 34 additions and 0 deletions

View file

@ -535,6 +535,9 @@ impl<'a> InferenceContext<'a> {
for (_, subst) in result.method_resolutions.values_mut() {
*subst = table.resolve_completely(subst.clone());
}
for (_, subst) in result.assoc_resolutions.values_mut() {
*subst = table.resolve_completely(subst.clone());
}
for adjustment in result.expr_adjustments.values_mut().flatten() {
adjustment.target = table.resolve_completely(adjustment.target.clone());
}