Advance deprecation level of Float/DoubleArray contains, indexOf, lastIndexOf to ERROR #KT-28753

This commit is contained in:
Abduqodiri Qurbonzoda
2021-09-13 17:32:17 +03:00
parent 3ddc29363a
commit bde055fe5c
5 changed files with 25 additions and 25 deletions
@@ -502,7 +502,7 @@ class ArraysTest {
// for each arr with size > 0 arr.average() = arr.sum().toDouble() / arr.size()
}
@Suppress("DEPRECATION")
@Suppress("DEPRECATION_ERROR")
@Test fun indexOfInPrimitiveArrays() {
expect(-1) { byteArrayOf(1, 2, 3).indexOf(0) }
expect(0) { byteArrayOf(1, 2, 3).indexOf(1) }