JVM_IR: do not copy defaults in functions with inline class parameters

This commit is contained in:
pyos
2019-12-20 12:41:21 +01:00
committed by Georgy Bronnikov
parent 9e17140daf
commit 982a088f00
9 changed files with 73 additions and 3 deletions
@@ -0,0 +1,9 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: a.kt
fun box() = A(0).f()
// FILE: b.kt
inline class A(val i: Int)
fun A.f(xs: Array<String> = Array<String>(1) { "OK" }) = xs[i]