aa9e48b9b6
Relates to KT-20626
12 lines
304 B
Kotlin
Vendored
12 lines
304 B
Kotlin
Vendored
// "Replace with assignment (original is empty)" "true"
|
|
// TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection
|
|
// WITH_RUNTIME
|
|
fun test(otherList: List<Int>) {
|
|
var list = emptyList<Int>()
|
|
foo()
|
|
bar()
|
|
list <caret>+= otherList
|
|
}
|
|
|
|
fun foo() {}
|
|
fun bar() {} |