We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e1090 commit 5672fcfCopy full SHA for 5672fcf
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -2085,7 +2085,7 @@ object messages {
2085
val msg = {
2086
val details = if (decl.isRealMethod && previousDecl.isRealMethod) {
2087
// compare the signatures when both symbols represent methods
2088
- decl.asTerm.signature.matchDegree(previousDecl.asTerm.signature) match {
+ decl.signature.matchDegree(previousDecl.signature) match {
2089
/* 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."
0 commit comments