File tree 1 file changed +3
-3
lines changed
compiler/src/dotty/tools/dotc/reporting/diagnostic
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2087,11 +2087,11 @@ object messages {
2087
2087
// compare the signatures when both symbols represent methods
2088
2088
decl.signature.matchDegree(previousDecl.signature) match {
2089
2089
/* case Signature.NoMatch => // can't happen because decl.matches(previousDecl) is checked before reporting this error */
2090
- case Signature .ParamMatch => " \n Overloads with equal parameter types but different return types are not allowed."
2091
- case _ /* Signature.FullMatch */ => " \n The definitions have the same signature after erasure."
2090
+ case Signature .ParamMatch => " \n Overloads with matching parameter types are not allowed."
2091
+ case _ /* Signature.FullMatch */ => " \n The definitions have matching type signatures after erasure."
2092
2092
}
2093
2093
} 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
2095
2095
}
2096
2096
val explanation = " "
2097
2097
}
You can’t perform that action at this time.
0 commit comments