mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
has -> implements in comments
This commit is contained in:
parent
c68807bc5a
commit
d3f6277ea3
6 changed files with 11 additions and 11 deletions
|
@ -122,7 +122,7 @@ pub struct NamedVariable {
|
|||
pub first_seen: Region,
|
||||
}
|
||||
|
||||
/// A type variable bound to an ability, like "a has Hash".
|
||||
/// A type variable bound to an ability, like "a implements Hash".
|
||||
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub struct AbleVariable {
|
||||
pub variable: Variable,
|
||||
|
@ -1040,7 +1040,7 @@ fn can_annotation_help(
|
|||
Where(_annotation, clauses) => {
|
||||
debug_assert!(!clauses.is_empty());
|
||||
|
||||
// Has clauses are allowed only on the top level of a signature, which we handle elsewhere.
|
||||
// Implements clauses are allowed only on the top level of a signature, which we handle elsewhere.
|
||||
env.problem(roc_problem::can::Problem::IllegalImplementsClause {
|
||||
region: Region::across_all(clauses.iter().map(|clause| &clause.region)),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue