mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
This is almost a 100% copy of K1 `ChangeToMutableCollectionFix` implementation. The common implementation will be extracted later (will be required for KTIJ-30535). ^KTIJ-29482 Fixed GitOrigin-RevId: 27301018a02a4f993c85fec32153dbdc595f6ba0
10 lines
380 B
Plaintext
10 lines
380 B
Plaintext
// "Change type to MutableMap" "true"
|
|
// WITH_STDLIB
|
|
fun main() {
|
|
val map = foo().toMutableMap()<caret>
|
|
map[2] = "b"
|
|
}
|
|
|
|
fun foo() = mapOf(1 to "a")
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ChangeToMutableCollectionFix
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.ChangeToMutableCollectionFixFactories$ChangeToMutableCollectionFix |