b1508a49ac
^KT-63049
24 lines
525 B
Kotlin
Vendored
24 lines
525 B
Kotlin
Vendored
// TARGET_BACKEND: NATIVE
|
|
// MODULE: cinterop
|
|
// FILE: kt63049.def
|
|
depends = Foundation
|
|
language = Objective-C
|
|
---
|
|
@interface WithClassProperty
|
|
@end
|
|
|
|
// MODULE: main(cinterop)
|
|
// FILE: main.kt
|
|
@file:OptIn(kotlinx.cinterop.ExperimentalForeignApi::class, kotlin.experimental.ExperimentalObjCName::class)
|
|
|
|
import kt63049.*
|
|
import kotlin.test.assertEquals
|
|
|
|
class Impl : WithClassProperty() {
|
|
companion object : WithClassPropertyMeta() {
|
|
fun stringProperty(): String? = "OK"
|
|
}
|
|
}
|
|
|
|
fun box() = Impl.stringProperty()
|