File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
compiler/src/dotty/tools/dotc/reporting/diagnostic Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -2085,7 +2085,7 @@ object messages {
2085
2085
val msg = {
2086
2086
val details = if (decl.isRealMethod && previousDecl.isRealMethod) {
2087
2087
// compare the signatures when both symbols represent methods
2088
- decl.asTerm. signature.matchDegree(previousDecl.asTerm .signature) match {
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
2090
case Signature .ParamMatch => " \n Overloads with equal parameter types but different return types are not allowed."
2091
2091
case _ /* Signature.FullMatch */ => " \n The definitions have the same signature after erasure."
You can’t perform that action at this time.
0 commit comments