KT-52743 IR: Fix null checks in Elvis operators

This commit is contained in:
Pavel Mikhailovskii
2022-06-20 18:51:46 +02:00
committed by teamcity
parent ed97e73129
commit 3766698081
11 changed files with 60 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
fun <T: Any?> nullableFun(): T {
return null as T
}
fun box(): String {
val t = nullableFun<String>()
return if (t?.length == null) "OK" else "Fail"
}