Support 'it op something' case in "redundant let" #KT-21373 Fixed

This commit is contained in:
shiraji
2017-11-29 08:37:28 +03:00
committed by Mikhail Glukhikh
parent f961f33f9d
commit 5d44037a2b
8 changed files with 85 additions and 11 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
fun foo(list: List<Int>) {
list.filter { it.let<caret> { it in IntRange(it - 1, 10) } }
}