@@ -1263,24 +1263,24 @@ object messages {
1263
1263
case class OverloadedOrRecursiveMethodNeedsResultType (methodName : Names .TermName , cycleSym : Symbol )(implicit ctx : Context )
1264
1264
extends Message (OverloadedOrRecursiveMethodNeedsResultTypeID ) {
1265
1265
val kind = " Syntax"
1266
- val msg = hl """ overloaded or recursive ${ cycleSym} needs return type """
1266
+ val msg = hl """ overloaded or recursive $cycleSym needs return type """
1267
1267
val explanation =
1268
- hl """ Case 1: ${ cycleSym} is overloaded
1269
- |If there are multiple methods named ` ${ cycleSym} ` and at least one definition of
1268
+ hl """ Case 1: $cycleSym is overloaded
1269
+ |If there are multiple methods named ` $cycleSym` and at least one definition of
1270
1270
|it calls another, you need to specify the calling method's return type.
1271
1271
|
1272
- |Case 2: ${ cycleSym} is recursive
1273
- |If ` ${ cycleSym} ` calls itself on any path (even through mutual recursion), you need to specify the return type
1274
- |of ` ${ cycleSym} ` or of a definition it's mutually recursive with.
1272
+ |Case 2: $cycleSym is recursive
1273
+ |If ` $cycleSym` calls itself on any path (even through mutual recursion), you need to specify the return type
1274
+ |of ` $cycleSym` or of a definition it's mutually recursive with.
1275
1275
| """ .stripMargin
1276
1276
}
1277
1277
1278
1278
case class RecursiveValueNeedsResultType (valName : Names .TermName , cycleSym : Symbol )(implicit ctx : Context )
1279
1279
extends Message (RecursiveValueNeedsResultTypeID ) {
1280
1280
val kind = " Syntax"
1281
- val msg = hl """ recursive ${ cycleSym} needs type """
1281
+ val msg = hl """ recursive $cycleSym needs type """
1282
1282
val explanation =
1283
- hl """ The definition of ` ${ cycleSym} ` is recursive and you need to specify its type.
1283
+ hl """ The definition of ` $cycleSym` is recursive and you need to specify its type.
1284
1284
| """ .stripMargin
1285
1285
}
1286
1286
0 commit comments