File tree 2 files changed +4
-3
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ object Denotations {
129
129
type AsSeenFromResult <: PreDenotation
130
130
131
131
/** The denotation with info(s) as seen from prefix type */
132
- final def asSeenFrom (pre : Type )(using Context ): AsSeenFromResult =
132
+ def asSeenFrom (pre : Type )(using Context ): AsSeenFromResult =
133
133
if (Config .cacheAsSeenFrom) {
134
134
if ((cachedPrefix ne pre) || ctx.period != validAsSeenFrom) {
135
135
cachedAsSeenFrom = computeAsSeenFrom(pre)
Original file line number Diff line number Diff line change @@ -2209,8 +2209,8 @@ object SymDenotations {
2209
2209
ensureCompleted()
2210
2210
myCompanion
2211
2211
2212
- override def registeredCompanion_= (c : Symbol ) =
2213
- myCompanion = c
2212
+ override def registeredCompanion_= (c : Symbol ) =
2213
+ myCompanion = c
2214
2214
2215
2215
private var myNestingLevel = - 1
2216
2216
@@ -2397,6 +2397,7 @@ object SymDenotations {
2397
2397
override def owner : Symbol = throw new AssertionError (" NoDenotation.owner" )
2398
2398
override def computeAsSeenFrom (pre : Type )(using Context ): SingleDenotation = this
2399
2399
override def mapInfo (f : Type => Type )(using Context ): SingleDenotation = this
2400
+ override def asSeenFrom (pre : Type )(using Context ): AsSeenFromResult = this
2400
2401
2401
2402
override def matches (other : SingleDenotation )(using Context ): Boolean = false
2402
2403
override def targetName (using Context ): Name = EmptyTermName
You can’t perform that action at this time.
0 commit comments