blob: a4e1012fe3812e70829278d9b273b6b97ca0f207 [file]
// "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() {}