Don't highlight "replace with +=" for read-only collections
Related to KT-20626
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
|
||||
|
||||
fun foo() {
|
||||
val list = mutableListOf(1, 2, 3)
|
||||
list += 4
|
||||
}
|
||||
Reference in New Issue
Block a user