20ddaa9ebf
#KT-48621 Fixed
24 lines
260 B
Kotlin
Vendored
24 lines
260 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
|
|
// FILE: A.kt
|
|
package a
|
|
import b.*
|
|
|
|
class A {
|
|
fun foo() = ok
|
|
|
|
companion object : B()
|
|
}
|
|
|
|
fun box(): String {
|
|
return A().foo()
|
|
}
|
|
|
|
// FILE: B.kt
|
|
package b
|
|
|
|
open class B {
|
|
@JvmField protected val ok = "OK"
|
|
}
|