"Cascade if" inspection: don't highlight for complex logical conditions

Related to KT-18615
This commit is contained in:
Mikhail Glukhikh
2017-07-05 17:42:03 +03:00
parent 8273eff1a1
commit 0fe9030eba
3 changed files with 37 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
// PROBLEM: none
fun foo(a: Boolean, b: Boolean, c: Boolean) {
<caret>if (a) {
}
else if (b && c) {
}
else if (!c) {
}
else {
}
}