"Cascade if" inspection: don't highlight for complex logical conditions
Related to KT-18615
This commit is contained in:
@@ -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 {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user