blob: ca1fb1d0d64e85546044e5e5115755d08a44f291 [file] [log] [blame]
// "Replace with assignment (original is empty)" "false"
// TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection
// ACTION: Change type to mutable
// ACTION: Replace overloaded operator with function call
// ACTION: Replace with filter
// ACTION: Replace with ordinary assignment
// WITH_RUNTIME
fun test(otherList: List<Int>) {
var list = emptyList<Int>()
foo()
bar()
list <caret>-= otherList
}
fun foo() {}
fun bar() {}