File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
compiler/src/dotty/tools/dotc/interactive Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import dotty.tools.dotc.util.SourcePosition
2323
2424import scala .collection .mutable
2525import scala .util .control .NonFatal
26- import dotty .tools .dotc .core .Types .TypeRef
2726
2827/**
2928 * One of the results of a completion query.
@@ -482,10 +481,10 @@ object Completion {
482481 def appendMemberSyms (name : Name , buf : mutable.Buffer [SingleDenotation ]): Unit =
483482 try
484483 val member = site.member(name)
485- if member.symbol.isAccessibleFrom(site) then
486- buf ++= member.alternatives
487- else
484+ if member.symbol.is(ParamAccessor ) && ! member.symbol.isAccessibleFrom(site) then
488485 buf ++= site.nonPrivateMember(name).alternatives
486+ else
487+ buf ++= member.alternatives
489488 catch
490489 case ex : TypeError =>
491490
You can’t perform that action at this time.
0 commit comments