mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
Reject implementations that don't point to abilities
This commit is contained in:
parent
a53de2e05c
commit
37ab06b0a3
4 changed files with 52 additions and 5 deletions
|
@ -130,7 +130,7 @@ pub enum Problem {
|
|||
},
|
||||
AbilityUsedAsType(Lowercase, Symbol, Region),
|
||||
NestedSpecialization(Symbol, Region),
|
||||
IllegalClaimedAbility(Region),
|
||||
IllegalDerivedAbility(Region),
|
||||
ImplementationNotFound {
|
||||
member: Symbol,
|
||||
region: Region,
|
||||
|
@ -154,6 +154,7 @@ pub enum Problem {
|
|||
original: Region,
|
||||
duplicate: Region,
|
||||
},
|
||||
NotAnAbility(Region),
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue