Intention to replace add/addAll on a mutable collection with += (#1143)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
// INTENTION_TEXT: Replace 'add()' with '+='
|
||||
fun foo() {
|
||||
val a = arrayListOf<Int>(1, 2, 3)
|
||||
a.<caret>add(4)
|
||||
}
|
||||
Reference in New Issue
Block a user