blob: 25a1d50b883b7d1b0fb8ef1dd7e461ccd4a206ef [file] [log] [blame]
// "Join with initializer" "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 = createList()
foo(list)
list <caret>+= otherList
}
fun createList(): List<Int> = listOf(1, 2, 3)
fun foo(list: List<Int>) {}