mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Report when ability member binds >1 variable to parent
This commit is contained in:
parent
a1c1dc1a9f
commit
5e1ab8225e
4 changed files with 96 additions and 0 deletions
|
@ -119,6 +119,13 @@ pub enum Problem {
|
|||
ability: Symbol,
|
||||
region: Region,
|
||||
},
|
||||
AbilityMemberMultipleBoundVars {
|
||||
member: Symbol,
|
||||
ability: Symbol,
|
||||
span_has_clauses: Region,
|
||||
bound_var_names: Vec<Lowercase>,
|
||||
},
|
||||
// TODO(abilities): remove me when ability hierarchies are supported
|
||||
AbilityMemberBindsExternalAbility {
|
||||
member: Symbol,
|
||||
ability: Symbol,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue