CFA: No more UNRESOLVED_CALL for object / enum entry qualifiers

(cherry picked from commit 4b09de8)
This commit is contained in:
Mikhail Glukhikh
2016-08-04 15:05:11 +03:00
committed by Mikhail Glukhikh
parent 962c2e5dd2
commit b7ed68db05
17 changed files with 504 additions and 30 deletions
@@ -0,0 +1,21 @@
class A {
companion object
}
object B {
val A.Companion.foo: X get() = X
}
object X
object C {
operator fun X.invoke() = println("Hello!")
}
inline fun <T, R> with(receiver: T, block: T.() -> R): R = receiver.block()
fun use() = with(C) {
with(B) {
A.foo()
}
}