Solve and gen ability members that bind other able variables

This commit is contained in:
Ayaz Hafiz 2022-04-21 14:11:32 -04:00 committed by ayazhafiz
parent 5fe902b8d3
commit b5efd830e5
6 changed files with 110 additions and 28 deletions

View file

@ -173,9 +173,12 @@ pub fn type_implementing_member(
let ability_implementations_for_specialization =
specialization_must_implement_constraints
.clone()
.get_unique();
.get_unique()
.into_iter()
.filter(|mia| mia.ability == ability)
.count();
ability_implementations_for_specialization.len()
ability_implementations_for_specialization
},
1,
"Multiple variables bound to an ability - this is ambiguous and should have been caught in canonicalization: {:?}",