Skip to content

Commit e85e516

Browse files
oderskyBlaisorblade
authored andcommitted
Fix context for cyclic error message
1 parent 9bb6cfe commit e85e516

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/TypeErrors.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ object handleRecursive {
8686
}
8787
}
8888

89-
class CyclicReference private (val denot: SymDenotation)(implicit val ctx: Context) extends TypeError {
89+
class CyclicReference private (val denot: SymDenotation) extends TypeError {
9090

9191
def errorMsg(cx: Context): Message =
9292
if (cx.mode is Mode.InferringReturnType) {
@@ -106,7 +106,7 @@ class CyclicReference private (val denot: SymDenotation)(implicit val ctx: Conte
106106
if (cycleSym.is(Implicit, butNot = Method) && cycleSym.owner.isTerm)
107107
CyclicReferenceInvolvingImplicit(cycleSym)
108108
else
109-
errorMsg(this.ctx)
109+
errorMsg(ctx)
110110
}
111111
}
112112

0 commit comments

Comments
 (0)