Skip to content

Commit feecfba

Browse files
committed
Fix kind for IllegalCyclicTypeReference
Other similar errors use `Cyclic`, so let's be a bit more consistent here.
1 parent 00d49e3 commit feecfba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,7 @@ object messages {
23922392

23932393
case class IllegalCyclicTypeReference(sym: Symbol, where: String, lastChecked: Type)(implicit val ctx: Context)
23942394
extends Message(IllegalCyclicTypeReferenceID) {
2395-
val kind: String = "Type"
2395+
val kind: String = "Cyclic"
23962396
val msg: String = i"illegal cyclic type reference: ${where} ${hl(lastChecked.show)} of $sym refers back to the type itself"
23972397
val explanation: String = ""
23982398
}

0 commit comments

Comments
 (0)