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 @@ -1264,10 +1264,16 @@ object messages {
1264
1264
1265
1265
val kind = " Reference"
1266
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
1267
+ private val noParameters = if (methPartType.widenSingleton.isInstanceOf [ExprType ])
1268
+ hl """ |As ${err.refStr(methPartType)} is defined without parenthesis, you may
1270
1269
|not use any at call-site, either.
1271
1270
| """
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
+
1272
1278
}
1273
1279
}
You can’t perform that action at this time.
0 commit comments