Files
Mikhail Glukhikh 3478f9f4f9 Introduce "use expression body" inspection #KT-16063 Fixed
Converted from the relevant intention
Reported cases: one-liners, whens
Also, more exact caret detection in local inspection tests

GitOrigin-RevId: 54bd543ad28125e4089fb4b43702701fcb3dfe08
2017-07-07 18:15:06 +03:00

7 lines
96 B
Kotlin

// IS_APPLICABLE: true
fun bar() {}
fun foo(f: Boolean) {
<caret>if (f) bar() else bar()
}