blob: 7770cdeed4aa072294bd0763adcb19e5c89c0483 [file] [log] [blame]
// "Join with initializer" "false"
// TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection
// ACTION: Replace overloaded operator with function call
// ACTION: Replace with ordinary assignment
// WITH_RUNTIME
fun test(otherList: List<Int>) {
var list: List<Int>
list = createList()
list <caret>+= otherList
}
fun createList(): List<Int> = listOf(1, 2, 3)