Skip to content

Commit d8e6d3e

Browse files
committed
Reclassify error messages due to CyclicReference as Cyclic
As suggested in review.
1 parent e75ee84 commit d8e6d3e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ object messages {
12621262

12631263
case class OverloadedOrRecursiveMethodNeedsResultType(cycleSym: Symbol)(implicit ctx: Context)
12641264
extends Message(OverloadedOrRecursiveMethodNeedsResultTypeID) {
1265-
val kind = "Syntax"
1265+
val kind = "Cyclic"
12661266
val msg = hl"""overloaded or recursive $cycleSym needs return type"""
12671267
val explanation =
12681268
hl"""Case 1: $cycleSym is overloaded
@@ -1277,7 +1277,7 @@ object messages {
12771277

12781278
case class RecursiveValueNeedsResultType(cycleSym: Symbol)(implicit ctx: Context)
12791279
extends Message(RecursiveValueNeedsResultTypeID) {
1280-
val kind = "Syntax"
1280+
val kind = "Cyclic"
12811281
val msg = hl"""recursive $cycleSym needs type"""
12821282
val explanation =
12831283
hl"""The definition of `$cycleSym` is recursive and you need to specify its type.
@@ -1286,7 +1286,7 @@ object messages {
12861286

12871287
case class CyclicReferenceInvolving(denot: SymDenotation)(implicit ctx: Context)
12881288
extends Message(CyclicReferenceInvolvingID) {
1289-
val kind = "Syntax"
1289+
val kind = "Cyclic"
12901290
val msg = hl"""cyclic reference involving $denot"""
12911291
val explanation =
12921292
hl"""|$denot is declared as part of a cycle which makes it impossible for the
@@ -1297,7 +1297,7 @@ object messages {
12971297

12981298
case class CyclicReferenceInvolvingImplicit(cycleSym: Symbol)(implicit ctx: Context)
12991299
extends Message(CyclicReferenceInvolvingImplicitID) {
1300-
val kind = "Syntax"
1300+
val kind = "Cyclic"
13011301
val msg = hl"""cyclic reference involving implicit $cycleSym"""
13021302
val explanation =
13031303
hl"""|$cycleSym is declared as part of a cycle which makes it impossible for the
@@ -2113,7 +2113,7 @@ object messages {
21132113
// Relative of CyclicReferenceInvolvingImplicit and RecursiveValueNeedsResultType
21142114
case class TermMemberNeedsResultTypeForImplicitSearch(cycleSym: Symbol)(implicit ctx: Context)
21152115
extends Message(TermMemberNeedsNeedsResultTypeForImplicitSearchID) {
2116-
val kind = "Syntax"
2116+
val kind = "Cyclic"
21172117
val msg = hl"""$cycleSym needs result type because its right-hand side attempts implicit search"""
21182118
val explanation =
21192119
hl"""|The right hand-side of $cycleSym's definition requires an implicit search at the highlighted position.

0 commit comments

Comments
 (0)