Fixed KT-1476 Code completion for not imported properties

#KT-1476 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-08-12 17:58:47 +04:00
parent 6bcfa08fde
commit 9c138d8637
12 changed files with 89 additions and 16 deletions
@@ -0,0 +1,5 @@
fun foo() {
glob<caret>
}
// EXIST: "globalProperty"
@@ -0,0 +1,3 @@
package foo.bar
val globalProperty: Int = 1
@@ -0,0 +1,8 @@
package test
fun globalFun1(): Int = 1
fun globalFun2(): Int = 1
object Some {
fun globalFun3(): Int = 3
}
@@ -0,0 +1,8 @@
package pack
fun testFun() {
gl<caret>
}
// EXIST: globalFun1, globalFun2
// ABSENT: globalFun3
@@ -0,0 +1,11 @@
package test
val globalProp1: Int = 1
var globalProp2: Int = 2
val String.globalExtensionProp: Int get() = 0
fun String.globalExtensionFun(): Int = 0
object Some {
var globalProp3: Int = 3
}
@@ -0,0 +1,10 @@
package pack
fun testFun() {
gl<caret>
}
// EXIST: globalProp1, globalProp2
// ABSENT: globalProp3
// ABSENT: globalExtensionProp
// ABSENT: globalExtensionFun