"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
+9
@@ -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) }
|
||||
}
|
||||
Reference in New Issue
Block a user