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
+4
@@ -0,0 +1,4 @@
|
||||
// PROBLEM: none
|
||||
// WITH_RUNTIME
|
||||
|
||||
val x = mapOf(1 to 2, 3 to 4).<caret>map { (key, value) -> key + value }.joinToString()
|
||||
Reference in New Issue
Block a user