Files
kotlin-fork/idea/testData/inspectionsLocal/collections/simplifiableCallChain/joinToFakeWithLambda.kt
T
Mikhail Glukhikh 36be1fdaef Introduce "simplifiable call chain on collection" inspection
Related to KT-12165
So #KT-18274 Fixed
So #KT-17198 Fixed
2017-06-29 16:25:52 +03:00

5 lines
185 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
val sb = StringBuilder()
val x = listOf(1, 2, 3).map { "$it*$it" }.<caret>joinTo(buffer = sb, prefix = "= ", separator = " + ") { "${it.substring(1)}"}