Skip to content

Commit 5b2ec61

Browse files
Use classSymbols method
Co-authored-by: Jamie Thompson <[email protected]>
1 parent 7be702b commit 5b2ec61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class SymUtils:
181181
else {
182182
val children = self.children
183183
val companionMirror = self.useCompanionAsSumMirror
184-
val ownerScope = if pre.isInstanceOf[SingletonType] then pre.parentSymbols(_.isClass) else Nil
184+
val ownerScope = if pre.isInstanceOf[SingletonType] then pre.classSymbols else Nil
185185
def problem(child: Symbol) = {
186186

187187
def accessibleMessage(sym: Symbol): String =

0 commit comments

Comments
 (0)