diff --git a/compiler/src/dotty/tools/dotc/core/Denotations.scala b/compiler/src/dotty/tools/dotc/core/Denotations.scala index 24aa48213f31..9b7893925e29 100644 --- a/compiler/src/dotty/tools/dotc/core/Denotations.scala +++ b/compiler/src/dotty/tools/dotc/core/Denotations.scala @@ -129,7 +129,7 @@ object Denotations { type AsSeenFromResult <: PreDenotation /** The denotation with info(s) as seen from prefix type */ - final def asSeenFrom(pre: Type)(using Context): AsSeenFromResult = + def asSeenFrom(pre: Type)(using Context): AsSeenFromResult = if (Config.cacheAsSeenFrom) { if ((cachedPrefix ne pre) || ctx.period != validAsSeenFrom) { cachedAsSeenFrom = computeAsSeenFrom(pre) diff --git a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala index fee5f1f0be87..89997fe2f801 100644 --- a/compiler/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/compiler/src/dotty/tools/dotc/core/SymDenotations.scala @@ -2209,8 +2209,8 @@ object SymDenotations { ensureCompleted() myCompanion - override def registeredCompanion_=(c: Symbol) = - myCompanion = c + override def registeredCompanion_=(c: Symbol) = + myCompanion = c private var myNestingLevel = -1 @@ -2397,6 +2397,7 @@ object SymDenotations { override def owner: Symbol = throw new AssertionError("NoDenotation.owner") override def computeAsSeenFrom(pre: Type)(using Context): SingleDenotation = this override def mapInfo(f: Type => Type)(using Context): SingleDenotation = this + override def asSeenFrom(pre: Type)(using Context): AsSeenFromResult = this override def matches(other: SingleDenotation)(using Context): Boolean = false override def targetName(using Context): Name = EmptyTermName