Skip to content

Commit

Permalink
Replace "qualifier" by "modifier"
Browse files Browse the repository at this point in the history
  • Loading branch information
mbovel committed Jun 11, 2024
1 parent e2dfea3 commit af6beec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/src/dotty/tools/dotc/reporting/messages.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ class WrongNumberOfParameters(tree: untpd.Tree, foundCount: Int, pt: Type, expec

class DuplicatePrivateProtectedQualifier()(using Context)
extends SyntaxMsg(DuplicatePrivateProtectedQualifierID) {
def msg(using Context) = "Duplicate private/protected qualifier"
def msg(using Context) = "Duplicate private/protected modifier"
def explain(using Context) =
i"It is not allowed to combine `private` and `protected` modifiers even if they are qualified to different scopes"
}
Expand All @@ -1847,7 +1847,7 @@ class ExpectedStartOfTopLevelDefinition()(using Context)
extends SyntaxMsg(ExpectedStartOfTopLevelDefinitionID) {
def msg(using Context) = "Expected start of definition"
def explain(using Context) =
i"You have to provide either ${hl("class")}, ${hl("trait")}, ${hl("object")}, or ${hl("enum")} definitions after qualifiers"
i"You have to provide either ${hl("class")}, ${hl("trait")}, ${hl("object")}, or ${hl("enum")} definitions after modifiers"
}

class NoReturnFromInlineable(owner: Symbol)(using Context)
Expand Down

0 comments on commit af6beec

Please sign in to comment.