Simplifiable call inspection: add filter -> filterIsInstance replacement
#KT-30501 Fixed
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun test(list: List<Any>) {
|
||||
list.<caret>filter { it is String }
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// WITH_RUNTIME
|
||||
fun test(list: List<Any>) {
|
||||
list.filterIsInstance<String>()
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
// PROBLEM: none
|
||||
fun test(list: List<Any>) {
|
||||
list.<caret>filter { it !is String }
|
||||
}
|
||||
Reference in New Issue
Block a user