Skip to content

Commit 110e652

Browse files
committed
Don't forget Mode.Printing in RefiendPrinter
1 parent 1b37761 commit 110e652

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
3737

3838
/** A stack of enclosing DefDef, TypeDef, or ClassDef, or ModuleDefs nodes */
3939
private[this] var enclosingDef: untpd.Tree = untpd.EmptyTree
40-
private[this] var myCtx: Context = _ctx
40+
private[this] var myCtx: Context = super.ctx
4141
private[this] var printPos = ctx.settings.YprintPos.value
4242
private[this] val printLines = ctx.settings.printLines.value
4343

0 commit comments

Comments
 (0)