@@ -52,7 +52,7 @@ object Contexts {
5252 private val (runLoc, store6) = store5.newLocation[Run | Null ]()
5353 private val (profilerLoc, store7) = store6.newLocation[Profiler ]()
5454 private val (notNullInfosLoc, store8) = store7.newLocation[List [NotNullInfo ]]()
55- private val (importInfoLoc, store9) = store8.newLocation[ImportInfo ]()
55+ private val (importInfoLoc, store9) = store8.newLocation[ImportInfo | Null ]()
5656 private val (typeAssignerLoc, store10) = store9.newLocation[TypeAssigner ](TypeAssigner )
5757
5858 private val initialStore = store10
@@ -233,10 +233,10 @@ object Contexts {
233233 def profiler : Profiler = store(profilerLoc)
234234
235235 /** The paths currently known to be not null */
236- def notNullInfos = store(notNullInfosLoc)
236+ def notNullInfos : List [ NotNullInfo ] = store(notNullInfosLoc)
237237
238238 /** The currently active import info */
239- def importInfo = store(importInfoLoc)
239+ def importInfo : ImportInfo | Null = store(importInfoLoc)
240240
241241 /** The current type assigner or typer */
242242 def typeAssigner : TypeAssigner = store(typeAssignerLoc)
@@ -252,12 +252,12 @@ object Contexts {
252252 catch {
253253 case ex : CyclicReference => Nil
254254 }
255- else if (isImportContext) importInfo.importedImplicits
255+ else if (isImportContext) importInfo.nn. importedImplicits
256256 else if (isNonEmptyScopeContext) scope.implicitDecls
257257 else Nil
258258 val outerImplicits =
259- if (isImportContext && importInfo.unimported.exists)
260- outer.implicits exclude importInfo.unimported
259+ if (isImportContext && importInfo.nn. unimported.exists)
260+ outer.implicits exclude importInfo.nn. unimported
261261 else
262262 outer.implicits
263263 if (implicitRefs.isEmpty) outerImplicits
@@ -401,7 +401,7 @@ object Contexts {
401401 def isImportContext : Boolean =
402402 (this ne NoContext )
403403 && (outer ne NoContext )
404- && (this .importInfo ne outer.importInfo)
404+ && (this .importInfo nen outer.importInfo)
405405
406406 /** Is this a context that introduces a non-empty scope? */
407407 def isNonEmptyScopeContext : Boolean =
@@ -563,7 +563,7 @@ object Contexts {
563563
564564 override def toString : String =
565565 def iinfo (using Context ) =
566- val info : ImportInfo | Null = ctx.importInfo
566+ val info = ctx.importInfo
567567 if (info == null ) " " else i " ${info.selectors}%, % "
568568 def cinfo (using Context ) =
569569 val core = s " owner = ${ctx.owner}, scope = ${ctx.scope}, import = $iinfo"
0 commit comments