JVM_IR: slightly refactor JvmPropertiesLowering
to make it easier to generate different kinds of synthetic methods. #KT-47609 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// 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"
|
||||
Reference in New Issue
Block a user