Files
kotlin-fork/idea/testData/quickfix/suspiciousCollectionReassignment/joinWithInitializer/simple.kt
T

10 lines
293 B
Kotlin
Vendored

// "Join with initializer" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection
// WITH_RUNTIME
fun test(otherList: List<Int>) {
var list = createList()
// comment
list <caret>+= otherList
}
fun createList(): List<Int> = listOf(1, 2, 3)