Files
kotlin-fork/compiler/testData/codegen/box/syntheticAccessors/jvmField.kt
T
Mikhail Glukhikh 20ddaa9ebf Remove redundant upcast in JvmPropertiesLowering
#KT-48621 Fixed
2021-09-08 18:04:36 +03:00

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"
}