Introduce "simplifiable call chain on collection" inspection

Related to KT-12165
So #KT-18274 Fixed
So #KT-17198 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-06-21 19:54:35 +03:00
committed by Mikhail Glukhikh
parent bdb9f00c75
commit 36be1fdaef
35 changed files with 428 additions and 10 deletions
@@ -0,0 +1,5 @@
// 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)}"}