We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d46215 commit 93976e9Copy full SHA for 93976e9
compiler/src/dotty/tools/dotc/transform/SymUtils.scala
@@ -173,7 +173,7 @@ object SymUtils:
173
else {
174
val children = self.children
175
val companionMirror = self.useCompanionAsSumMirror
176
- val ownerScope = if pre.isInstanceOf[SingletonType] then pre.parentSymbols(_.isClass) else Nil
+ val ownerScope = if pre.isInstanceOf[SingletonType] then pre.classSymbols else Nil
177
def problem(child: Symbol) = {
178
179
def accessibleMessage(sym: Symbol): String =
0 commit comments