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 31c56ee commit 4de0dd7Copy full SHA for 4de0dd7
src/dotty/tools/dotc/transform/TreeChecker.scala
@@ -58,8 +58,8 @@ class TreeChecker extends Phase with SymTransformer {
58
59
def checkCompanion(symd: SymDenotation)(implicit ctx: Context): Unit = {
60
val cur = symd.linkedClass
61
- val prev = ctx.atPhase(ctx.phase.prev) {
62
- implicit ctx =>
+ ctx.withMode(Mode.FutureDefsOK).atPhase(ctx.phase.prev) {
+ implicit ctx: Context =>
63
symd.symbol.linkedClass
64
}
65
0 commit comments