Files
kotlin-fork/idea/testData/intentions/replaceSingleLineLetIntention/invokeCall5.kt
T
Toshiaki Kameyama e0aeb8f7ec Remove redundant let: rename invoke call
#KT-29556 Fixed
2019-03-01 11:31:07 +03:00

9 lines
141 B
Kotlin
Vendored

// IS_APPLICABLE: false
// WITH_RUNTIME
class A {
operator fun invoke() {}
}
fun foo(a: A) {
(1 to a).<caret>let { (i, b) -> b() }
}