CFA: No more UNRESOLVED_CALL for object / enum entry qualifiers
(cherry picked from commit 4b09de8)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
962c2e5dd2
commit
b7ed68db05
+21
@@ -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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user