Skip to content

Commit 80d7a03

Browse files
som-snyttsmarter
andauthored
Update compiler/src/dotty/tools/dotc/reporting/messages.scala
Co-authored-by: Guillaume Martres <[email protected]>
1 parent db578b5 commit 80d7a03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,7 @@ class ExtensionNullifiedByMember(method: Symbol, target: Symbol)(using Context)
24562456
def kind = MessageKind.PotentialIssue
24572457
def msg(using Context) =
24582458
i"""Extension method ${hl(method.name.toString)} will never be selected
2459-
|because ${hl(target.name.toString)} already has a member with the same name."""
2459+
|because ${hl(target.name.toString)} already has a member with the same name and compatible parameter types."""
24602460
def explain(using Context) =
24612461
i"""An extension method can be invoked as a regular method, but if that is intended,
24622462
|it should not be defined as an extension.

0 commit comments

Comments
 (0)