File tree 2 files changed +7
-1
lines changed
src/dotty/tools/dotc/interactive 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ object Interactive {
115
115
/** Filter for names that should appear when looking for completions. */
116
116
private [this ] object completionsFilter extends NameFilter {
117
117
def apply (pre : Type , name : Name )(implicit ctx : Context ): Boolean =
118
- ! name.isConstructorName && name.is( SimpleNameKind )
118
+ ! name.isConstructorName && name.toTermName.info.kind == SimpleNameKind
119
119
}
120
120
121
121
/** Find named trees with a non-empty position whose symbol match `sym` in `trees`.
Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ class TabcompleteTests extends ReplTest {
29
29
comp.suggestions.sorted == List (" slice" , " sliding" ))
30
30
}
31
31
32
+ @ Test def tabCompleteModule : Unit =
33
+ fromInitialState{ implicit s =>
34
+ val comp = tabComplete(" scala.Pred" )
35
+ assertEquals(comp.suggestions,List (" Predef" ))
36
+ }
37
+
32
38
@ Test def autoCompleteValAssign : Unit =
33
39
fromInitialState { implicit s => tabComplete(" val x = 5" ) }
34
40
You can’t perform that action at this time.
0 commit comments