Throw on invalid AbstractMutableList.addAll index #KT-47211
This commit is contained in:
committed by
Space
parent
7e44cddbab
commit
59031543e2
@@ -35,6 +35,8 @@ public actual abstract class AbstractMutableList<E> protected actual constructor
|
||||
}
|
||||
|
||||
actual override fun addAll(index: Int, elements: Collection<E>): Boolean {
|
||||
AbstractList.checkPositionIndex(index, size)
|
||||
|
||||
checkIsMutable()
|
||||
var _index = index
|
||||
var changed = false
|
||||
|
||||
Reference in New Issue
Block a user