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 daf736c commit 4755570Copy full SHA for 4755570
src/dotty/tools/dotc/core/Contexts.scala
@@ -248,7 +248,7 @@ object Contexts {
248
withPhase(phase.id)
249
250
final def withPhaseNoLater(phase: Phase) =
251
- if (ctx.phase.id > phase.id) withPhase(phase) else ctx
+ if (phase.exists && ctx.phase.id > phase.id) withPhase(phase) else ctx
252
253
/** If -Ydebug is on, the top of the stack trace where this context
254
* was created, otherwise `null`.
0 commit comments