Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/kt47609.kt
T
pyos 7ae4303e1b JVM_IR: slightly refactor JvmPropertiesLowering
to make it easier to generate different kinds of synthetic methods.

 #KT-47609 Fixed
2021-07-12 22:38:44 +02:00

12 lines
248 B
Kotlin
Vendored

// WITH_REFLECT
// TARGET_BACKEND: JVM
annotation class Ann(val value: String)
inline class C<T>(val x: String)
@Ann("OK")
val <T> C<T>.value: String
get() = x
fun box() = (C<Any?>::value.annotations.singleOrNull() as? Ann)?.value ?: "null"