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 4efca0fCopy full SHA for 4efca0f
src/dotty/tools/dotc/transform/TreeChecker.scala
@@ -59,8 +59,10 @@ class TreeChecker extends Phase with SymTransformer {
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 =>
+ ct => {
63
+ implicit val ctx: Context = ct.withMode(Mode.FutureDefsOK)
64
symd.symbol.linkedClass
65
+ }
66
}
67
68
if (prev.exists)
0 commit comments