aa9e48b9b6
Relates to KT-20626
11 lines
330 B
Plaintext
Vendored
11 lines
330 B
Plaintext
Vendored
// "Replace with ordinary assignment" "true"
|
|
// TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection
|
|
// ACTION: Replace overloaded operator with function call
|
|
// WITH_RUNTIME
|
|
fun test(otherList: List<Int>, flag: Boolean) {
|
|
var list = otherList
|
|
if (flag) {
|
|
list = list + 4
|
|
}
|
|
}
|