mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
8 lines
280 B
Kotlin
8 lines
280 B
Kotlin
// PROBLEM: '+=' on a read-only list creates a new list under the hood
|
|
// FIX: Change type to mutable
|
|
// WITH_STDLIB
|
|
fun test() {
|
|
var list = listOf(1)
|
|
list <selection>+=<caret></selection> 2
|
|
}
|
|
// OFFLINE_REPORT: "'+=' on a read-only list creates a new list under the hood" |