Redundant Unit inspection: fix false positive for single expression

So #KT-22097 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-01-19 09:39:26 +03:00
committed by Mikhail Glukhikh
parent 30acc224ec
commit 18de0f75ab
16 changed files with 175 additions and 13 deletions
@@ -0,0 +1,8 @@
fun test(b: Boolean): Unit = if (b) {
unit()
<caret>Unit
} else {
}
fun unit() {
}