mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Do not move the testdata to the shared place; regenerate it independently instead ^KTIJ-30535 Fixed GitOrigin-RevId: 95f224416fa46598fc346180beaf4733cb2d58b2
13 lines
420 B
Kotlin
13 lines
420 B
Kotlin
// "Join with initializer" "false"
|
|
// TOOL: org.jetbrains.kotlin.idea.codeInsight.inspections.shared.SuspiciousCollectionReassignmentInspection
|
|
// ACTION: Replace overloaded operator with function call
|
|
// ACTION: Replace with ordinary assignment
|
|
// WITH_STDLIB
|
|
fun test(otherList: List<Int>) {
|
|
var list: List<Int>
|
|
list = createList()
|
|
list <caret>+= otherList
|
|
}
|
|
|
|
fun createList(): List<Int> = listOf(1, 2, 3)
|