Skip to content

Commit cd61f3e

Browse files
committed
Make error explanation more correct
1 parent 731a00d commit cd61f3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -1270,7 +1270,8 @@ object messages {
12701270
|it calls another, you need to specify the calling method's return type.
12711271
|
12721272
|Case 2: ${method} is recursive
1273-
|If `${method}` calls itself on any path, you need to specify its return type.
1273+
|If `${method}` calls itself on any path (even through mutual recursion), you need to specify the return type
1274+
|of `${method}` or of a definition it's mutually recursive with.
12741275
|""".stripMargin
12751276
}
12761277

0 commit comments

Comments
 (0)