"Remove redundant '.let' call" intention: handle it inside function call
So #KT-20583 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
d4798b699f
commit
096f9fefd1
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun foo(s: String, i: Int) = s.length + i
|
||||
|
||||
fun test() {
|
||||
val s = ""
|
||||
s.let { foo(it, 1)<caret> }
|
||||
}
|
||||
Reference in New Issue
Block a user