Skip to content

Commit 1816a19

Browse files
committed
Interactive#completions: discard absent symbols
1 parent ee4af35 commit 1816a19

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
@@ -89,7 +89,7 @@ object Interactive {
8989
val boundaryCtx = ctx.withOwner(boundary)
9090
try
9191
prefix.memberDenots(completionsFilter, (name, buf) =>
92-
buf ++= prefix.member(name).altsWith(_.symbol.isAccessibleFrom(prefix)(boundaryCtx))
92+
buf ++= prefix.member(name).altsWith(d => !d.isAbsent && d.symbol.isAccessibleFrom(prefix)(boundaryCtx))
9393
).map(_.symbol).toList
9494
catch {
9595
case ex: TypeError => Nil

0 commit comments

Comments
 (0)