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 a33d517 commit 7eba7f7Copy full SHA for 7eba7f7
src/dotty/tools/dotc/transform/TreeChecker.scala
@@ -118,8 +118,7 @@ class TreeChecker extends Phase with SymTransformer {
118
val prevPhase = ctx.phase.prev // can be a mini-phase
119
val squahsedPhase = ctx.squashed(prevPhase)
120
ctx.println(s"checking ${ctx.compilationUnit} after phase ${squahsedPhase}")
121
- val checkingCtx = ctx.fresh
122
- .setTyperState(ctx.typerState.withReporter(new ThrowingReporter(ctx.reporter)))
+ val checkingCtx = ctx.fresh.setReporter(new ThrowingReporter(ctx.reporter))
123
val checker = new Checker(previousPhases(phasesToRun.toList)(ctx))
124
try checker.typedExpr(ctx.compilationUnit.tpdTree)(checkingCtx)
125
catch {
0 commit comments