Skip to content

Commit 65a404f

Browse files
authored
Merge pull request #7654 from dotty-staging/fix-error-type
Fix kinds of a few errors
2 parents eeb0925 + feecfba commit 65a404f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ object messages {
196196
pt: Type)
197197
(implicit ctx: Context)
198198
extends Message(AnonymousFunctionMissingParamTypeID) {
199-
val kind: String = "Syntax"
199+
val kind: String = "Type"
200200

201201
val msg: String = {
202202
val ofFun =
@@ -2298,7 +2298,7 @@ object messages {
22982298
}
22992299
case class StableIdentPattern(tree: untpd.Tree, pt: Type)(implicit val ctx: Context)
23002300
extends Message(StableIdentPatternID) {
2301-
override def kind: String = "Syntax"
2301+
override def kind: String = "Type"
23022302
override def msg: String =
23032303
em"""Stable identifier required, but $tree found"""
23042304
override def explanation: String = ""
@@ -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)