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

11 lines
298 B
Kotlin
Vendored

// "Replace with assignment (original is empty)" "false"
// ACTION: Replace overloaded operator with function call
// ACTION: Replace with ordinary assignment
// WITH_RUNTIME
class Test {
var list = emptyList<Int>()
fun test(otherList: List<Int>) {
list +=<caret> otherList
}
}