Skip to content

Commit 93976e9

Browse files
Use classSymbols method
Co-authored-by: Jamie Thompson <[email protected]> [Cherry-picked 5b2ec61][modified]
1 parent 4d46215 commit 93976e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/SymUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ object SymUtils:
173173
else {
174174
val children = self.children
175175
val companionMirror = self.useCompanionAsSumMirror
176-
val ownerScope = if pre.isInstanceOf[SingletonType] then pre.parentSymbols(_.isClass) else Nil
176+
val ownerScope = if pre.isInstanceOf[SingletonType] then pre.classSymbols else Nil
177177
def problem(child: Symbol) = {
178178

179179
def accessibleMessage(sym: Symbol): String =

0 commit comments

Comments
 (0)