JVM IR: Fix inline class constructors taking default values of inline class type.
This commit is contained in:
committed by
Alexander Udalov
parent
846e50a0c0
commit
4ac45eb38b
+10
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user