blob: 6cbb7c10f10735cb48e540ac2af8c9bb21e78862 [file]
// TARGET_BACKEND: JVM
// WITH_STDLIB
data class Parent(val child: Parent.Child?) {
val result =
if (this.child == null) foo(this.child)
else "Fail"
@JvmInline
value class Child(val value: String)
}
fun foo(x: String?): String =
x ?: "OK"
fun box(): String =
Parent(null).result