@@ -1260,26 +1260,26 @@ object messages {
1260
1260
| """ .stripMargin
1261
1261
}
1262
1262
1263
- case class OverloadedOrRecursiveMethodNeedsResultType (tree : Names .TermName )(implicit ctx : Context )
1263
+ case class OverloadedOrRecursiveMethodNeedsResultType (method : Names .TermName )(implicit ctx : Context )
1264
1264
extends Message (OverloadedOrRecursiveMethodNeedsResultTypeID ) {
1265
1265
val kind = " Syntax"
1266
- val msg = hl """ overloaded or recursive method ${tree } needs return type """
1266
+ val msg = hl """ overloaded or recursive method ${method } needs return type """
1267
1267
val explanation =
1268
- hl """ Case 1: ${tree } is overloaded
1269
- |If there are multiple methods named ` ${tree }` and at least one definition of
1268
+ hl """ Case 1: ${method } is overloaded
1269
+ |If there are multiple methods named ` ${method }` 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: ${tree } is recursive
1273
- |If ` ${tree }` calls itself on any path, you need to specify its return type.
1272
+ |Case 2: ${method } is recursive
1273
+ |If ` ${method }` calls itself on any path, you need to specify its return type.
1274
1274
| """ .stripMargin
1275
1275
}
1276
1276
1277
- case class RecursiveValueNeedsResultType (tree : Names .TermName )(implicit ctx : Context )
1277
+ case class RecursiveValueNeedsResultType (value : Names .TermName )(implicit ctx : Context )
1278
1278
extends Message (RecursiveValueNeedsResultTypeID ) {
1279
1279
val kind = " Syntax"
1280
- val msg = hl """ recursive value ${tree } needs type """
1280
+ val msg = hl """ recursive value ${value } needs type """
1281
1281
val explanation =
1282
- hl """ The definition of ` ${tree }` is recursive and you need to specify its type.
1282
+ hl """ The definition of ` ${value }` is recursive and you need to specify its type.
1283
1283
| """ .stripMargin
1284
1284
}
1285
1285
0 commit comments