Fix ArrayStoreException from InlineClassAwareCaller.call

#KT-56650 Fixed
This commit is contained in:
wrongwrong
2023-02-14 16:13:31 +09:00
committed by Alexander Udalov
parent 10e9ef349f
commit b039f2e574
7 changed files with 57 additions and 8 deletions
@@ -0,0 +1,15 @@
// TARGET_BACKEND: JVM
// WITH_REFLECT
@JvmInline
value class Value(val value: String)
class A(val result: Value)
fun box(): String {
val args: Array<Value> = arrayOf(Value("OK"))
val a = (::A).call(*args)
return a.result.value
}