37d5c4b223
Wrap object members so they do not require dispatch receiver Hack jvm backend to make it work
24 lines
399 B
Kotlin
Vendored
24 lines
399 B
Kotlin
Vendored
// import all members from companion object
|
|
package c
|
|
|
|
import c.A.Companion.B
|
|
import c.<!CANNOT_ALL_UNDER_IMPORT_FROM_SINGLETON!>M<!>.*
|
|
|
|
fun foo() {
|
|
val <!UNUSED_VARIABLE!>b<!>: B = B()
|
|
var <!UNUSED_VARIABLE!>r<!>: R = R()
|
|
}
|
|
|
|
class A() {
|
|
companion object {
|
|
class B() {
|
|
companion object {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
object M {
|
|
fun foo() {}
|
|
class R() {}
|
|
} |