blob: 073b3741ca0fe9dc329d742889eb08ef79eb8371 [file]
// TARGET_BACKEND: JVM_IR
// 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