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 f3b15ed commit 0830862Copy full SHA for 0830862
compiler/src/dotty/tools/dotc/core/Symbols.scala
@@ -255,8 +255,8 @@ object Symbols {
255
final def entered(using Context): _self.type =
256
val d = denot
257
if d.owner.isClass then
258
- d.owner.asClass.enter(_self)
259
- if d.is(Module) then d.owner.asClass.enter(d.moduleClass)
+ d.owner.classDenot.enter(_self)
+ if d.is(Module) then d.owner.classDenot.enter(d.moduleClass)
260
_self
261
262
@@ -531,9 +531,6 @@ object Symbols {
531
}
532
common.source
533
534
- private def enter(sym: Symbol, scope: Scope = EmptyScope)(using Context): Unit =
535
- _self.classDenot.enter(sym, scope)
536
-
537
def classInfo(using Context): ClassInfo = _self.classDenot.classInfo
538
539
end extension
0 commit comments