Skip to content

Commit ea648c3

Browse files
committed
CyclicReferenceInvolving: improve explanation for consistency
Tentative advice copied from `CyclicReferenceInvolvingImplicit`.
1 parent cd61f3e commit ea648c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -1291,6 +1291,7 @@ object messages {
12911291
val explanation =
12921292
hl"""|$denot is declared as part of a cycle which makes it impossible for the
12931293
|compiler to decide upon ${denot.name}'s type.
1294+
|To avoid this error, try giving `${denot.name}` an explicit type.
12941295
|""".stripMargin
12951296
}
12961297

0 commit comments

Comments
 (0)