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 9c5e216 commit 9c0d0ddCopy full SHA for 9c0d0dd
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -1264,10 +1264,16 @@ object messages {
1264
1265
val kind = "Reference"
1266
1267
- val explanation =
1268
- hl"""|You have specified more parameter lists as defined in the method definition(s).
1269
- |In case ${err.refStr(methPartType)} is defined without parenthesis, you may
+ private val noParameters = if (methPartType.widenSingleton.isInstanceOf[ExprType])
+ hl"""|As ${err.refStr(methPartType)} is defined without parenthesis, you may
1270
|not use any at call-site, either.
1271
|"""
+ else
1272
+ ""
1273
+
1274
+ val explanation =
1275
+ s"""|You have specified more parameter lists as defined in the method definition(s).
1276
+ |$noParameters""".stripMargin
1277
1278
}
1279
0 commit comments