JVM IR: Fix inline class constructors taking default values of inline class type.

This commit is contained in:
Steven Schäfer
2020-02-18 14:53:21 +01:00
committed by Alexander Udalov
parent 846e50a0c0
commit 4ac45eb38b
8 changed files with 43 additions and 0 deletions
@@ -0,0 +1,10 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND_FIR: JVM_IR
inline class Inner(val result: String)
inline class A(val inner: Inner = Inner("OK"))
fun box(): String {
return A().inner.result
}