Do not use "Remove redundant '.let' call" when receiver is used #KT-14390 Fixed

This commit is contained in:
shiraji
2016-10-28 00:33:16 +09:00
committed by Mikhail Glukhikh
parent 6a1b0b9cbc
commit 0b57d8eb49
7 changed files with 76 additions and 4 deletions
@@ -0,0 +1,9 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
// This should be reported. However, in order to avoid too complecate logic, the intention ignore this case.
import java.util.*
fun baz2(foo: List<String>) {
foo.let<caret> { it.binarySearch("", Comparator<kotlin.String> { o1, o2 -> 0 }) }
}