File tree 2 files changed +11
-2
lines changed
src/dotty/tools/dotc/interactive
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ object Completion {
140
140
private [this ] val completions = new RenameAwareScope
141
141
142
142
/**
143
- * Return the list of symbols that shoudl be included in completion results.
143
+ * Return the list of symbols that should be included in completion results.
144
144
*
145
145
* If several symbols share the same name, the type symbols appear before term symbols inside
146
146
* the same `Completion`.
@@ -252,7 +252,10 @@ object Completion {
252
252
(
253
253
(mode.is(Mode .Term ) && sym.isTerm)
254
254
|| (mode.is(Mode .Type ) && (sym.isType || sym.isStable))
255
- )
255
+ ) &&
256
+ (sym ne defn.RepeatedParamClass ) &&
257
+ (sym ne defn.ByNameParamClass2x ) &&
258
+ (sym ne defn.EqualsPatternClass )
256
259
257
260
/**
258
261
* Find all the members of `site` that are accessible and which should be included in `info`.
Original file line number Diff line number Diff line change @@ -90,4 +90,10 @@ class TabcompleteTests extends ReplTest {
90
90
val expected = List (" Renamed" )
91
91
assertEquals(expected, tabComplete(" val foo: Rena" ))
92
92
}
93
+
94
+ @ Test def importScala = fromInitialState { implicit s =>
95
+ val comp = tabComplete(" import scala." )
96
+ // check that there are no special symbols leaked: <byname>, <special-ops>, ...
97
+ assertEquals(comp.find(_.startsWith(" <" )), None )
98
+ }
93
99
}
You can’t perform that action at this time.
0 commit comments