Pass along type in IfNullExpressionFusionLowering

This commit is contained in:
Georgy Bronnikov
2020-04-23 14:10:33 +03:00
parent f95ff049c6
commit 565874b3a0
8 changed files with 51 additions and 8 deletions
+9
View File
@@ -0,0 +1,9 @@
fun problematic(s: String): String {
return s.toNullable()?.id() ?: return "fail"
}
fun String.toNullable(): String? = this
fun String.id() = this
fun box() = problematic("OK")