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
14 lines
617 B
Plaintext
14 lines
617 B
Plaintext
// "Replace with assignment (original is empty)" "true"
|
|
// TOOL: org.jetbrains.kotlin.idea.codeInsight.inspections.shared.SuspiciousCollectionReassignmentInspection
|
|
// WITH_STDLIB
|
|
fun test(otherMap: Map<Int, Int>) {
|
|
var list = emptyMap<Int, Int>()
|
|
foo()
|
|
bar()
|
|
list = otherMap
|
|
}
|
|
|
|
fun foo() {}
|
|
fun bar() {}
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.codeInsight.inspections.shared.SuspiciousCollectionReassignmentInspection$ReplaceWithAssignmentFix
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.codeInsight.inspections.shared.SuspiciousCollectionReassignmentInspection$ReplaceWithAssignmentFix |