Add regression tests for obsolete issues

#KT-50909
 #KT-50974
 #KT-51888
This commit is contained in:
Alexander Udalov
2022-09-23 22:06:30 +02:00
parent e7b5e74f78
commit 4baa74f396
11 changed files with 142 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
// 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