7ae4303e1b
to make it easier to generate different kinds of synthetic methods. #KT-47609 Fixed
12 lines
248 B
Kotlin
Vendored
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"
|