File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2217,14 +2217,13 @@ object SymDenotations {
2217
2217
def recur (pobjs : List [ClassDenotation ], acc : PreDenotation ): PreDenotation = pobjs match {
2218
2218
case pcls :: pobjs1 =>
2219
2219
if (pcls.isCompleting) recur(pobjs1, acc)
2220
- else {
2221
- val pmembers = pcls.computeNPMembersNamed (name).filterWithPredicate { d =>
2220
+ else
2221
+ val pobjMembers = pcls.nonPrivateMembersNamed (name).filterWithPredicate { d =>
2222
2222
// Drop members of `Any` and `Object`
2223
2223
val owner = d.symbol.maybeOwner
2224
2224
(owner ne defn.AnyClass ) && (owner ne defn.ObjectClass )
2225
2225
}
2226
- recur(pobjs1, acc.union(pmembers))
2227
- }
2226
+ recur(pobjs1, acc.union(pobjMembers))
2228
2227
case nil =>
2229
2228
val directMembers = super .computeNPMembersNamed(name)
2230
2229
if ! acc.exists then directMembers
You can’t perform that action at this time.
0 commit comments