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
23
23
24
24
import scala .collection .mutable
25
25
import scala .util .control .NonFatal
26
- import dotty .tools .dotc .core .Types .TypeRef
27
26
28
27
/**
29
28
* One of the results of a completion query.
@@ -482,10 +481,10 @@ object Completion {
482
481
def appendMemberSyms (name : Name , buf : mutable.Buffer [SingleDenotation ]): Unit =
483
482
try
484
483
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
488
485
buf ++= site.nonPrivateMember(name).alternatives
486
+ else
487
+ buf ++= member.alternatives
489
488
catch
490
489
case ex : TypeError =>
491
490
You can’t perform that action at this time.
0 commit comments