Redundant Unit inspection: fix false positive for single expression
So #KT-22097 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
30acc224ec
commit
18de0f75ab
+8
@@ -0,0 +1,8 @@
|
||||
// PROBLEM: none
|
||||
fun test(b: Boolean): Unit = if (b) {
|
||||
int()
|
||||
<caret>Unit
|
||||
} else {
|
||||
}
|
||||
|
||||
fun int() = 1
|
||||
Reference in New Issue
Block a user