Files
kotlin-fork/idea/testData/inspectionsLocal/collections/simplifiableCallChain/joinToForMap.kt
T
Mikhail Glukhikh fdca96634e Add restrictions for "simplifiable call chain" inspection
Do not use on maps; do not suggest for lambdas with return inside
Related to KT-18274
2017-06-29 16:25:55 +03:00

4 lines
121 B
Kotlin
Vendored

// PROBLEM: none
// WITH_RUNTIME
val x = mapOf(1 to 2, 3 to 4).<caret>map { (key, value) -> key + value }.joinToString()