Don't highlight "replace with +=" for read-only collections

Related to KT-20626
This commit is contained in:
Mikhail Glukhikh
2018-12-04 12:39:25 +03:00
parent c560aada3d
commit ed8305995e
7 changed files with 63 additions and 3 deletions
@@ -0,0 +1,7 @@
// WITH_RUNTIME
// HIGHLIGHT: GENERIC_ERROR_OR_WARNING
fun foo() {
val list = mutableListOf(1, 2, 3)
list += 4
}