Skip to content

Commit c569c8a

Browse files
author
Jendrik Wenke
committed
fix grammar and wording
1 parent 5672fcf commit c569c8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,11 +2087,11 @@ object messages {
20872087
// compare the signatures when both symbols represent methods
20882088
decl.signature.matchDegree(previousDecl.signature) match {
20892089
/* case Signature.NoMatch => // can't happen because decl.matches(previousDecl) is checked before reporting this error */
2090-
case Signature.ParamMatch => "\nOverloads with equal parameter types but different return types are not allowed."
2091-
case _ /* Signature.FullMatch */ => "\nThe definitions have the same signature after erasure."
2090+
case Signature.ParamMatch => "\nOverloads with matching parameter types are not allowed."
2091+
case _ /* Signature.FullMatch */ => "\nThe definitions have matching type signatures after erasure."
20922092
}
20932093
} else ""
2094-
hl"${decl.showLocated} is already defined as ${previousDecl.showDcl} in line ${previousDecl.pos.line + 1}." + details
2094+
hl"${decl.showLocated} is already defined as ${previousDecl.showDcl} at line ${previousDecl.pos.line + 1}." + details
20952095
}
20962096
val explanation = ""
20972097
}

0 commit comments

Comments
 (0)