Files
kotlin-fork/idea/testData/quickfix/suspiciousCollectionReassignment/replaceWithOrdinaryAssignment/simple.kt.after
T
2018-12-12 15:56:11 +03:00

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
}
}