Files
kotlin-fork/idea/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptyListOf.kt
T

12 lines
281 B
Kotlin
Vendored

// "Replace with assignment" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection
// WITH_RUNTIME
fun test(otherList: List<Int>) {
var list = listOf<Int>()
foo()
bar()
list <caret>+= otherList
}
fun foo() {}
fun bar() {}