mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-04 17:14:37 +00:00
Solve and gen ability members that bind other able variables
This commit is contained in:
parent
5fe902b8d3
commit
b5efd830e5
6 changed files with 110 additions and 28 deletions
|
@ -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: {:?}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue