KT-52743 IR: Fix null checks in Elvis operators
This commit is contained in:
committed by
teamcity
parent
ed97e73129
commit
3766698081
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user