Fix existing reporting tests

This commit is contained in:
Ayaz Hafiz 2022-05-19 10:12:47 -04:00
parent 2c87214b44
commit cf56b5015a
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
6 changed files with 176 additions and 106 deletions

View file

@ -684,7 +684,7 @@ fn unify_structure(
outcome
}
FlexAbleVar(_, ability) => {
let mut outcome = merge(subs, ctx, *other);
let mut outcome = merge(subs, ctx, Structure(*flat_type));
let must_implement_ability = MustImplementAbility {
typ: Obligated::Adhoc(ctx.first),
ability: *ability,