"Remove redundant let": fix destructuring declaration false positive

#KT-26042 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-08-14 07:29:23 +03:00
committed by Mikhail Glukhikh
parent 7e8521d9dc
commit 2d2f1125a9
9 changed files with 97 additions and 10 deletions
@@ -0,0 +1,8 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
fun test() {
(1 to 2).let<caret> { (i, j) -> foo(i, 3) }
}
fun foo(i: Int, j: Int) = i + j