mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Old implementations can be overwritten before solving
This commit is contained in:
parent
7298705db7
commit
bd5f5ed735
2 changed files with 12 additions and 2 deletions
|
@ -504,8 +504,12 @@ impl IAbilitiesStore<Pending> {
|
|||
|
||||
let old_declared_impl = self.declared_implementations.insert(impl_key, member_impl);
|
||||
debug_assert!(
|
||||
old_declared_impl.is_none(),
|
||||
"Replacing existing declared impl!"
|
||||
old_declared_impl.is_none() ||
|
||||
// Can happen between we import declared implementations during canonicalization, but
|
||||
// implementation information only after solving
|
||||
old_declared_impl.unwrap() == member_impl,
|
||||
"Replacing existing declared impl: {:?}",
|
||||
(impl_key, old_declared_impl)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue