Added imports resolve from objects and variables

This commit is contained in:
svtk
2011-12-27 14:35:52 +04:00
parent 90e5c03389
commit 7060f6ef80
8 changed files with 299 additions and 14 deletions
@@ -7,10 +7,20 @@ import b.ext //extension function
import b.value //property
import b.C.bar //function from class object
import b.C.cValue //property from class object
import b.constant.fff //function from val
import b.constant.dValue //property from val
import b.E.f //val from class object
fun test(arg: B) {
foo(value)
arg.ext()
bar()
foo(cValue)
fff(dValue)
f.f()
}
//FILE:b.kt
@@ -18,7 +28,7 @@ package b
class B() {}
fun foo(<!UNUSED_PARAMETER!>i<!>: Int) {}
fun foo(i: Int) = i
fun B.ext() {}
@@ -29,4 +39,21 @@ class C() {
fun bar() {}
val cValue = 1
}
}
class D() {
fun fff(s: String) = s
val dValue = "w"
}
val constant = D()
class E() {
class object {
val f = F()
}
}
class F() {
fun f() {}
}