"Remove redundant '.let' call" intention: handle it inside function call

So #KT-20583 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-06-12 04:26:17 +03:00
committed by Mikhail Glukhikh
parent d4798b699f
commit 096f9fefd1
18 changed files with 212 additions and 5 deletions
@@ -0,0 +1,9 @@
// WITH_RUNTIME
// IS_APPLICABLE: false
fun foo(s: String, i: Int) = s.length + i
fun test() {
val nullable: String? = null
nullable?.let<caret> { foo(it, 1) }
}