Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/annotatedMemberExtensionProperty.kt
T
2021-10-11 12:09:52 +03:00

20 lines
310 B
Kotlin
Vendored

// WITH_RUNTIME
@Target(AnnotationTarget.PROPERTY)
annotation class Anno
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
@kotlin.jvm.JvmInline
value class Z(val s: String)
class A {
@Anno
val Z.r: String get() = s
}
fun box(): String {
with(A()) {
return Z("OK").r
}
}