Introduce Common protected property AbstractMutableList.modCount #KT-57150

This commit is contained in:
Abduqodiri Qurbonzoda
2024-01-12 18:36:17 +05:00
committed by Space Team
parent 1626057f75
commit 5f16fb2e4d
4 changed files with 27 additions and 3 deletions
@@ -28,7 +28,7 @@ public actual abstract class AbstractMutableList<E> protected actual constructor
* to provide fail-fast behavoir when a concurrent modification is detected during iteration.
* [ConcurrentModificationException] will be thrown in this case.
*/
protected var modCount: Int = 0
protected actual var modCount: Int = 0
abstract override fun add(index: Int, element: E): Unit
abstract override fun removeAt(index: Int): E