Skip to content

Commit 0afd2c1

Browse files
committed
Replace "qualifier" by "modifier"
1 parent 5becb63 commit 0afd2c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/reporting/messages.scala

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

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

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

0 commit comments

Comments
 (0)