@@ -575,7 +575,7 @@ object Denotations {
575575
576576 /** A non-overloaded denotation */
577577 abstract class SingleDenotation (symbol : Symbol , initInfo : Type , isType : Boolean ) extends Denotation (symbol, initInfo, isType) {
578- protected def newLikeThis (symbol : Symbol , info : Type , pre : Type , isRefinedMethod : Boolean ): SingleDenotation
578+ protected def newLikeThis (symbol : Symbol , info : Type , pre : Type , isRefinedMethod : Boolean )( using Context ) : SingleDenotation
579579
580580 final def name (using Context ): Name = symbol.name
581581
@@ -1153,11 +1153,11 @@ object Denotations {
11531153 prefix : Type ) extends NonSymSingleDenotation (symbol, initInfo, prefix) {
11541154 validFor = initValidFor
11551155 override def hasUniqueSym : Boolean = true
1156- protected def newLikeThis (s : Symbol , i : Type , pre : Type , isRefinedMethod : Boolean ): SingleDenotation =
1156+ protected def newLikeThis (s : Symbol , i : Type , pre : Type , isRefinedMethod : Boolean )( using Context ) : SingleDenotation =
11571157 if isRefinedMethod then
1158- new JointRefDenotation (s, i, validFor , pre, isRefinedMethod)
1158+ new JointRefDenotation (s, i, currentStablePeriod , pre, isRefinedMethod)
11591159 else
1160- new UniqueRefDenotation (s, i, validFor , pre)
1160+ new UniqueRefDenotation (s, i, currentStablePeriod , pre)
11611161 }
11621162
11631163 class JointRefDenotation (
@@ -1168,15 +1168,15 @@ object Denotations {
11681168 override val isRefinedMethod : Boolean ) extends NonSymSingleDenotation (symbol, initInfo, prefix) {
11691169 validFor = initValidFor
11701170 override def hasUniqueSym : Boolean = false
1171- protected def newLikeThis (s : Symbol , i : Type , pre : Type , isRefinedMethod : Boolean ): SingleDenotation =
1172- new JointRefDenotation (s, i, validFor , pre, isRefinedMethod)
1171+ protected def newLikeThis (s : Symbol , i : Type , pre : Type , isRefinedMethod : Boolean )( using Context ) : SingleDenotation =
1172+ new JointRefDenotation (s, i, currentStablePeriod , pre, isRefinedMethod)
11731173 }
11741174
11751175 class ErrorDenotation (using Context ) extends NonSymSingleDenotation (NoSymbol , NoType , NoType ) {
11761176 override def exists : Boolean = false
11771177 override def hasUniqueSym : Boolean = false
11781178 validFor = Period .allInRun(ctx.runId)
1179- protected def newLikeThis (s : Symbol , i : Type , pre : Type , isRefinedMethod : Boolean ): SingleDenotation =
1179+ protected def newLikeThis (s : Symbol , i : Type , pre : Type , isRefinedMethod : Boolean )( using Context ) : SingleDenotation =
11801180 this
11811181 }
11821182
0 commit comments