Files
kotlin-fork/idea/testData/quickfix/suspiciousCollectionReassignment/replaceWithAssignment/emptyMapOf.kt.after
T
2018-12-12 15:56:11 +03:00

12 lines
299 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 = mapOf<Int, Int>()
foo()
bar()
list = otherMap
}
fun foo() {}
fun bar() {}