Align ListBuilder with native ArrayList
Furthermore, add test for ListBuilder.subList detection of concurrent modification, and fix error in ListBuilder and ArrayList. Fix KT-62346
This commit is contained in:
committed by
Space Cloud
parent
d62dbbb1bd
commit
5a8faa8775
@@ -252,6 +252,12 @@ class ConcurrentModificationTest {
|
||||
action(subList)
|
||||
}
|
||||
}
|
||||
assertFailsWith<ConcurrentModificationException> {
|
||||
buildList<String> {
|
||||
addAll(listOf("a", "b", "c"))
|
||||
for (e in subList(1, 3)) remove(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user