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:
committed by
Vladimir Dolzhenko
parent
daab07ea38
commit
6b2c87020b
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun test(i: Int) {
|
||||
val p: (String) -> Boolean =
|
||||
if (i == 1) { s -> true } else { <caret>s -> false }
|
||||
}
|
||||
Reference in New Issue
Block a user