summaryrefslogtreecommitdiff
path: root/src/interactive/scala/tools/nsc
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-02-17 16:02:49 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-02-17 16:02:49 +1000
commit9cd5c881fc13acbd9aca08fd6ae2830292e5f1b4 (patch)
tree7fa3c39ce6b8d9380ec718a7872df689eddefab7 /src/interactive/scala/tools/nsc
parenta8ec6c97ea7edbf25ffffe2e798b2deedcd5955f (diff)
downloadscala-9cd5c881fc13acbd9aca08fd6ae2830292e5f1b4.tar.gz
scala-9cd5c881fc13acbd9aca08fd6ae2830292e5f1b4.tar.bz2
scala-9cd5c881fc13acbd9aca08fd6ae2830292e5f1b4.zip
Remove incorrect completions: implicits can't add type members
The checkfile of the tests added in the last commit offered a type member from `RichInt` in the completions for the type `Int`. However, only term members can be extension methods; type members cannot.
Diffstat (limited to 'src/interactive/scala/tools/nsc')
-rw-r--r--src/interactive/scala/tools/nsc/interactive/Global.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interactive/scala/tools/nsc/interactive/Global.scala b/src/interactive/scala/tools/nsc/interactive/Global.scala
index e42a0fda0e..2d09435f60 100644
--- a/src/interactive/scala/tools/nsc/interactive/Global.scala
+++ b/src/interactive/scala/tools/nsc/interactive/Global.scala
@@ -1138,7 +1138,7 @@ class Global(settings: Settings, _reporter: Reporter, projectName: String = "")
for (view <- applicableViews) {
val vtree = viewApply(view)
val vpre = stabilizedType(vtree)
- for (sym <- vtree.tpe.members) {
+ for (sym <- vtree.tpe.members if sym.isTerm) {
addTypeMember(sym, vpre, inherited = false, view.tree.symbol)
}
}