diff options
author | Luc Bourlier <luc.bourlier@typesafe.com> | 2013-12-02 15:25:08 +0100 |
---|---|---|
committer | Luc Bourlier <luc.bourlier@typesafe.com> | 2013-12-06 13:56:46 +0100 |
commit | 5ed834e251f2a83cadf19ae832268ead3e34de37 (patch) | |
tree | 3190ca5ed683f9d58ff2891d3fc069204437a6dd /test/files/presentation/scope-completion-import | |
parent | 7c1d1149291e1b83c96a0f6954144b9e97c030ea (diff) | |
download | scala-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')
-rw-r--r-- | test/files/presentation/scope-completion-import/src/Completions.scala | 8 |
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 } |