1b1df9f0db
^KT-63287 Fixed
22 lines
646 B
Kotlin
Vendored
22 lines
646 B
Kotlin
Vendored
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class, kotlin.experimental.ExperimentalObjCName::class)
|
|
|
|
import library.*
|
|
import kotlin.test.assertEquals
|
|
|
|
@ObjCName("KotlinImplWithCompanionPropertyOverride")
|
|
class Impl : WithClassProperty() {
|
|
companion object : WithClassPropertyMeta() {
|
|
override fun stringProperty(): String? = "42"
|
|
}
|
|
}
|
|
|
|
@ObjCName("KotlinImplWithoutCompanionPropertyOverride")
|
|
class ImplWithoutOverride : WithClassProperty() {
|
|
companion object : WithClassPropertyMeta() {
|
|
}
|
|
}
|
|
|
|
fun main() {
|
|
assertEquals("42", Impl.stringProperty())
|
|
assertEquals("153", ImplWithoutOverride.stringProperty())
|
|
} |