Skip to content

Commit 4202e7f

Browse files
committed
Interactive#completions: discard absent symbols
1 parent 201d58e commit 4202e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/interactive/Interactive.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ object Interactive {
8888
def completions(prefix: Type, boundary: Symbol)(implicit ctx: Context): List[Symbol] = {
8989
val boundaryCtx = ctx.withOwner(boundary)
9090
prefix.memberDenots(completionsFilter, (name, buf) =>
91-
buf ++= prefix.member(name).altsWith(_.symbol.isAccessibleFrom(prefix)(boundaryCtx))
91+
buf ++= prefix.member(name).altsWith(d => !d.isAbsent && d.symbol.isAccessibleFrom(prefix)(boundaryCtx))
9292
).map(_.symbol).toList
9393
}
9494

0 commit comments

Comments
 (0)