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 573b664 commit 70535c8Copy full SHA for 70535c8
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -1363,7 +1363,9 @@ object messages {
1363
1364
val msg: String = {
1365
val more = if (tree.isInstanceOf[tpd.Apply]) " more" else ""
1366
- em"${methodSymbol.showLocated} does not take$more parameters"
+ val meth = methodSymbol
1367
+ val methStr = if (meth.exists) methodSymbol.showLocated else "expression"
1368
+ em"$methStr does not take$more parameters"
1369
}
1370
1371
val explanation: String = {
0 commit comments