File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
compiler/src/dotty/tools/dotc/reporting/diagnostic Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1235,10 +1235,16 @@ object messages {
1235
1235
1236
1236
val kind = " Reference"
1237
1237
1238
- val explanation =
1239
- hl """ |You have specified more parameter lists as defined in the method definition(s).
1240
- |In case ${err.refStr(methPartType)} is defined without parenthesis, you may
1238
+ private val noParameters = if (methPartType.widenSingleton.isInstanceOf [ExprType ])
1239
+ hl """ |As ${err.refStr(methPartType)} is defined without parenthesis, you may
1241
1240
|not use any at call-site, either.
1242
1241
| """ .stripMargin
1242
+ else
1243
+ " "
1244
+
1245
+ val explanation =
1246
+ s """ |You have specified more parameter lists as defined in the method definition(s).
1247
+ | $noParameters""" .stripMargin
1248
+
1243
1249
}
1244
1250
}
You can’t perform that action at this time.
0 commit comments