This commit is contained in:
Ayaz Hafiz 2022-04-12 17:23:03 -04:00
parent 5171e3964d
commit 462f443956
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -1224,7 +1224,8 @@ fn check_ability_specialization(
.get_var_by_symbol(&root_symbol)
.expect("Ability should be registered in env by now!");
// Check if they unify - if they don't, that's a type error!
// Check if they unify - if they don't, then the claimed specialization isn't really one,
// and that's a type error!
let snapshot = subs.snapshot();
let unified = unify(subs, symbol_loc_var.value, root_signature_var, Mode::EQ);