JVM IR: fix IOOBE from remapTypeParameters for synthetic property annotations method

This commit is contained in:
Alexander Udalov
2019-09-18 14:55:05 +02:00
parent c972bf5882
commit acbe5c4e21
6 changed files with 41 additions and 2 deletions
@@ -0,0 +1,16 @@
// TARGET_BACKEND: JVM
// WITH_REFLECT
@Retention(AnnotationRetention.RUNTIME)
annotation class Simple(val value: String)
interface A<T>
@Simple("OK")
public val <T> A<T>.p: String
get() = TODO()
fun box(): String {
val o = object : A<Int> {}
return (o::p.annotations.single() as Simple).value
}