We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d0c927 commit b89e21dCopy full SHA for b89e21d
compiler/src/dotty/tools/dotc/reporting/diagnostic/messages.scala
@@ -1262,7 +1262,8 @@ object messages {
1262
case class CyclicReferenceInvolving(denot: SymDenotation)(implicit ctx: Context)
1263
extends Message(CyclicReferenceInvolvingID) {
1264
val kind: String = "Cyclic"
1265
- val msg: String = em"""Cyclic reference involving $denot"""
+ val where = if denot.exists then s" involving $denot" else ""
1266
+ val msg: String = em"Cyclic reference $where"
1267
val explanation: String =
1268
em"""|$denot is declared as part of a cycle which makes it impossible for the
1269
|compiler to decide upon ${denot.name}'s type.
0 commit comments