import of members without additional bound to receiver descriptors
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import A.B.foo
|
||||
import A.B.x
|
||||
|
||||
class A() {
|
||||
class object {
|
||||
class B() {
|
||||
class object {
|
||||
val x = 1
|
||||
fun foo() = "2"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = if (x == 1 && foo() == "2") "OK" else "fail"
|
||||
Reference in New Issue
Block a user