File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/dotty/tools/dotc/interactive Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ object Interactive {
105
105
buf ++= prefix.member(name).altsWith{ d =>
106
106
! d.isAbsent &&
107
107
! d.is(Synthetic ) && ! d.is(Artifact ) &&
108
+ ! d.is(ModuleClass ) &&
108
109
d.symbol.isAccessibleFrom(prefix)(boundaryCtx)
109
110
}
110
111
).map(_.symbol).toList
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ class TabcompleteTests extends ReplTest {
29
29
comp.suggestions.sorted == List (" slice" , " sliding" ))
30
30
}
31
31
32
+ @ Test def classModuleHiding : Unit =
33
+ fromInitialState{ implicit s => assert(tabComplete(" scala.Predef" ).suggestions.isEmpty) }
34
+
32
35
@ Test def autoCompleteValAssign : Unit =
33
36
fromInitialState { implicit s => tabComplete(" val x = 5" ) }
34
37
You can’t perform that action at this time.
0 commit comments