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 9bb6cfe commit e85e516Copy full SHA for e85e516
compiler/src/dotty/tools/dotc/core/TypeErrors.scala
@@ -86,7 +86,7 @@ object handleRecursive {
86
}
87
88
89
-class CyclicReference private (val denot: SymDenotation)(implicit val ctx: Context) extends TypeError {
+class CyclicReference private (val denot: SymDenotation) extends TypeError {
90
91
def errorMsg(cx: Context): Message =
92
if (cx.mode is Mode.InferringReturnType) {
@@ -106,7 +106,7 @@ class CyclicReference private (val denot: SymDenotation)(implicit val ctx: Conte
106
if (cycleSym.is(Implicit, butNot = Method) && cycleSym.owner.isTerm)
107
CyclicReferenceInvolvingImplicit(cycleSym)
108
else
109
- errorMsg(this.ctx)
+ errorMsg(ctx)
110
111
112
0 commit comments