Replace explicit parameter with 'it': do not suggest when lambda is directly under "when" or "if"

Relates to #KT-35320
This commit is contained in:
Toshiaki Kameyama
2019-12-06 14:13:43 +01:00
committed by Vladimir Dolzhenko
parent daab07ea38
commit 6b2c87020b
11 changed files with 89 additions and 0 deletions
@@ -0,0 +1,5 @@
// IS_APPLICABLE: false
fun test(i: Int) {
val p: (String) -> Boolean =
if (i == 1) { s -> true } else { <caret>s -> false }
}