blob: 214e06b5e2d7b66e70db7bad239aac5040015f95 [file]
// "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 ordinary assignment
// WITH_RUNTIME
fun test(otherList: List<Int>) {
var list = listOf<Int>()
foo(list)
bar()
list <caret>+= otherList
}
fun foo(list: List<Int>) {}
fun bar() {}