JVM IR: fix generation of generic multi-file delegates

This commit is contained in:
Alexander Udalov
2019-09-18 17:14:25 +02:00
parent acbe5c4e21
commit a7b984bcbf
9 changed files with 35 additions and 6 deletions
@@ -0,0 +1,17 @@
// TARGET_BACKEND: JVM
// WITH_RUNTIME
// FILE: A.kt
@file:kotlin.jvm.JvmMultifileClass
@file:kotlin.jvm.JvmName("A")
package test
public val <T> Array<out T>.foo: String
get() = this[0].toString() + this[1].toString()
// FILE: B.kt
import test.foo
fun box(): String = arrayOf('O', "K").foo