"Cascade if" inspection: do not suggest for one-line if

This commit is contained in:
Mikhail Glukhikh
2017-07-06 14:49:54 +03:00
parent 0fe9030eba
commit 0c41ceea9d
4 changed files with 15 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
// PROBLEM: none
fun foo(a: Boolean, b: Boolean): Int {
return <caret>if (a) 42 else if (b) 13 else 0
}