mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 16:44:33 +00:00
Coupon cutting
This commit is contained in:
parent
a242a90416
commit
c1b1f60630
4 changed files with 10 additions and 17 deletions
|
@ -170,15 +170,12 @@ pub fn type_implementing_member(
|
|||
ability: Symbol,
|
||||
) -> Symbol {
|
||||
debug_assert_eq!({
|
||||
let ability_implementations_for_specialization =
|
||||
specialization_must_implement_constraints
|
||||
.clone()
|
||||
.get_unique()
|
||||
.into_iter()
|
||||
.filter(|mia| mia.ability == ability)
|
||||
.count();
|
||||
|
||||
ability_implementations_for_specialization
|
||||
specialization_must_implement_constraints
|
||||
.clone()
|
||||
.get_unique()
|
||||
.into_iter()
|
||||
.filter(|mia| mia.ability == ability)
|
||||
.count()
|
||||
},
|
||||
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