Add restrictions for "simplifiable call chain" inspection
Do not use on maps; do not suggest for lambdas with return inside Related to KT-18274
This commit is contained in:
committed by
Mikhail Glukhikh
parent
2f0159a7ab
commit
fdca96634e
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
val x = listOf(1, 2, 3).joinToString(prefix = "= ", separator = " + ") {
|
||||
val sb = StringBuilder()
|
||||
sb.append(it).append(" + ").append(it)
|
||||
sb
|
||||
}
|
||||
Reference in New Issue
Block a user