aa9e48b9b6
Relates to KT-20626
12 lines
302 B
Plaintext
Vendored
12 lines
302 B
Plaintext
Vendored
// "Replace with assignment (original is empty)" "true"
|
|
// TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection
|
|
// WITH_RUNTIME
|
|
fun test(otherMap: Map<Int, Int>) {
|
|
var list = emptyMap<Int, Int>()
|
|
foo()
|
|
bar()
|
|
list = otherMap
|
|
}
|
|
|
|
fun foo() {}
|
|
fun bar() {} |