Convert to expression body is forbidden for if without else #KT-12951 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-08-10 14:26:45 +03:00
parent 1c5c6506ce
commit 6a6c67dd5f
14 changed files with 148 additions and 0 deletions
@@ -0,0 +1,9 @@
// IS_APPLICABLE: true
fun nullable() {}
fun bar() {}
fun foo(f: Boolean) {
<caret>nullable() ?: if (f) bar() else bar()
}