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

9 lines
290 B
Kotlin
Vendored

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