summaryrefslogtreecommitdiff
path: root/test/files/presentation/scope-completion-import/src
diff options
context:
space:
mode:
authorLuc Bourlier <luc.bourlier@typesafe.com>2013-12-02 15:25:08 +0100
committerLuc Bourlier <luc.bourlier@typesafe.com>2013-12-06 13:56:46 +0100
commit5ed834e251f2a83cadf19ae832268ead3e34de37 (patch)
tree3190ca5ed683f9d58ff2891d3fc069204437a6dd /test/files/presentation/scope-completion-import/src
parent7c1d1149291e1b83c96a0f6954144b9e97c030ea (diff)
downloadscala-5ed834e251f2a83cadf19ae832268ead3e34de37.tar.gz
scala-5ed834e251f2a83cadf19ae832268ead3e34de37.tar.bz2
scala-5ed834e251f2a83cadf19ae832268ead3e34de37.zip
SI-7995 completion imported vars and vals
Imported member vals and vars were always marked inaccessible, even if referencing them at the location of the completion is valid in code. The accessible flag is now set accordingly to the accessibility of the getter.
Diffstat (limited to 'test/files/presentation/scope-completion-import/src')
-rw-r--r--test/files/presentation/scope-completion-import/src/Completions.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/presentation/scope-completion-import/src/Completions.scala b/test/files/presentation/scope-completion-import/src/Completions.scala
index 6e08321283..d30aa0b4e3 100644
--- a/test/files/presentation/scope-completion-import/src/Completions.scala
+++ b/test/files/presentation/scope-completion-import/src/Completions.scala
@@ -1,10 +1,18 @@
package test
class C {
+ val vCCC : Int = 0
+ var rCCC : Int = 0
+ private val pVCCC : Int = 0
+ private var pRCCC : Int = 0
def fCCC : Int = 0
}
object O extends C {
+ val vOOO : Int = 0
+ var rOOO : Int = 0
+ private val pVOOO : Int = 0
+ private var pROOO : Int = 0
def fOOO : Int = 0
}