Skip to content

Commit 5672fcf

Browse files
author
Jendrik Wenke
committed
remove redundant asTerm
1 parent b6e1090 commit 5672fcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,7 @@ object messages {
20852085
val msg = {
20862086
val details = if (decl.isRealMethod && previousDecl.isRealMethod) {
20872087
// compare the signatures when both symbols represent methods
2088-
decl.asTerm.signature.matchDegree(previousDecl.asTerm.signature) match {
2088+
decl.signature.matchDegree(previousDecl.signature) match {
20892089
/* case Signature.NoMatch => // can't happen because decl.matches(previousDecl) is checked before reporting this error */
20902090
case Signature.ParamMatch => "\nOverloads with equal parameter types but different return types are not allowed."
20912091
case _ /* Signature.FullMatch */ => "\nThe definitions have the same signature after erasure."

0 commit comments

Comments
 (0)