[K/N] Deprecate ArrayIndexOutOfBoundsException

As a part of efforts to stabilize Native stdlib.
This commit is contained in:
Abduqodiri Qurbonzoda
2023-04-09 00:48:50 +03:00
committed by Space Team
parent be87b6950c
commit 8e995e6c62
9 changed files with 365 additions and 362 deletions
@@ -54,7 +54,7 @@ fun f() = 5
assertEquals(20, varargGetter(2, 2, 3, 4))
assertEquals(20, varargGetter(2, 2, 3, 4))
if (Platform.osFamily != OsFamily.WASM) {
assertFailsWith<ArrayIndexOutOfBoundsException> { varargGetter(3, 2, 3, 4) }
assertFailsWith<IndexOutOfBoundsException> { varargGetter(3, 2, 3, 4) }
}
}
}