If then to elvis: now not applicable for calls with nullable result #KT-14542 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-10-27 14:21:57 +03:00
parent f390b9159a
commit 89e908dab5
3 changed files with 21 additions and 1 deletions
@@ -0,0 +1,7 @@
// IS_APPLICABLE: false
fun foo(p: String?): String? {
return <caret>if (p != null) p.bar() else "a"
}
fun String.bar(): String? = null