JVM_IR: slightly refactor JvmPropertiesLowering

to make it easier to generate different kinds of synthetic methods.

 #KT-47609 Fixed
This commit is contained in:
pyos
2021-06-30 18:47:20 +02:00
committed by Alexander Udalov
parent a943cdadef
commit 7ae4303e1b
7 changed files with 83 additions and 63 deletions
+11
View File
@@ -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"