Skip to content

Commit 3845b87

Browse files
mbovelWojciechMazur
authored andcommitted
Replace "qualifier" by "modifier"
[Cherry-picked 0afd2c1]
1 parent df662e5 commit 3845b87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: compiler/src/dotty/tools/dotc/reporting/messages.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ class WrongNumberOfParameters(tree: untpd.Tree, foundCount: Int, pt: Type, expec
18191819

18201820
class DuplicatePrivateProtectedQualifier()(using Context)
18211821
extends SyntaxMsg(DuplicatePrivateProtectedQualifierID) {
1822-
def msg(using Context) = "Duplicate private/protected qualifier"
1822+
def msg(using Context) = "Duplicate private/protected modifier"
18231823
def explain(using Context) =
18241824
i"It is not allowed to combine `private` and `protected` modifiers even if they are qualified to different scopes"
18251825
}
@@ -1828,7 +1828,7 @@ class ExpectedStartOfTopLevelDefinition()(using Context)
18281828
extends SyntaxMsg(ExpectedStartOfTopLevelDefinitionID) {
18291829
def msg(using Context) = "Expected start of definition"
18301830
def explain(using Context) =
1831-
i"You have to provide either ${hl("class")}, ${hl("trait")}, ${hl("object")}, or ${hl("enum")} definitions after qualifiers"
1831+
i"You have to provide either ${hl("class")}, ${hl("trait")}, ${hl("object")}, or ${hl("enum")} definitions after modifiers"
18321832
}
18331833

18341834
class NoReturnFromInlineable(owner: Symbol)(using Context)

0 commit comments

Comments
 (0)