Fix incorrect replacement with 'any' instead of 'all'
#KT-17730 Fixed
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: "Replace with 'any{}'"
|
||||
// INTENTION_TEXT: "Replace with 'all{}'"
|
||||
// IS_APPLICABLE_2: false
|
||||
fun foo(): Boolean {
|
||||
val foo = listOf(true, true)
|
||||
return foo.any { it }
|
||||
return foo.all { it }
|
||||
}
|
||||
Reference in New Issue
Block a user