From 6e5b94f695b55dcecd550123b929a27062de02ab Mon Sep 17 00:00:00 2001 From: Abduqodiri Qurbonzoda Date: Thu, 18 Jun 2020 22:40:58 +0300 Subject: [PATCH] Update js public api dump --- libraries/stdlib/api/js-v1/kotlin.collections.kt | 6 ++++++ libraries/stdlib/api/js/kotlin.collections.kt | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/libraries/stdlib/api/js-v1/kotlin.collections.kt b/libraries/stdlib/api/js-v1/kotlin.collections.kt index 97c40815ff2..c59bdc05971 100644 --- a/libraries/stdlib/api/js-v1/kotlin.collections.kt +++ b/libraries/stdlib/api/js-v1/kotlin.collections.kt @@ -1043,8 +1043,10 @@ public operator fun kotlin.ByteArray.contains(element: kotlin.Byte): kotlin.Bool public operator fun kotlin.CharArray.contains(element: kotlin.Char): kotlin.Boolean +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'any { it == element }' instead to continue using this behavior, or '.asList().contains(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "any { it == element }", imports = {})) public operator fun kotlin.DoubleArray.contains(element: kotlin.Double): kotlin.Boolean +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'any { it == element }' instead to continue using this behavior, or '.asList().contains(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "any { it == element }", imports = {})) public operator fun kotlin.FloatArray.contains(element: kotlin.Float): kotlin.Boolean public operator fun kotlin.IntArray.contains(element: kotlin.Int): kotlin.Boolean @@ -3259,8 +3261,10 @@ public fun kotlin.ByteArray.indexOf(element: kotlin.Byte): kotlin.Int public fun kotlin.CharArray.indexOf(element: kotlin.Char): kotlin.Int +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'indexOfFirst { it == element }' instead to continue using this behavior, or '.asList().indexOf(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "indexOfFirst { it == element }", imports = {})) public fun kotlin.DoubleArray.indexOf(element: kotlin.Double): kotlin.Int +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'indexOfFirst { it == element }' instead to continue using this behavior, or '.asList().indexOf(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "indexOfFirst { it == element }", imports = {})) public fun kotlin.FloatArray.indexOf(element: kotlin.Float): kotlin.Int public fun kotlin.IntArray.indexOf(element: kotlin.Int): kotlin.Int @@ -3614,8 +3618,10 @@ public fun kotlin.ByteArray.lastIndexOf(element: kotlin.Byte): kotlin.Int public fun kotlin.CharArray.lastIndexOf(element: kotlin.Char): kotlin.Int +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'indexOfLast { it == element }' instead to continue using this behavior, or '.asList().lastIndexOf(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "indexOfLast { it == element }", imports = {})) public fun kotlin.DoubleArray.lastIndexOf(element: kotlin.Double): kotlin.Int +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'indexOfLast { it == element }' instead to continue using this behavior, or '.asList().lastIndexOf(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "indexOfLast { it == element }", imports = {})) public fun kotlin.FloatArray.lastIndexOf(element: kotlin.Float): kotlin.Int public fun kotlin.IntArray.lastIndexOf(element: kotlin.Int): kotlin.Int diff --git a/libraries/stdlib/api/js/kotlin.collections.kt b/libraries/stdlib/api/js/kotlin.collections.kt index 50b3afe59a5..2e12f1a4891 100644 --- a/libraries/stdlib/api/js/kotlin.collections.kt +++ b/libraries/stdlib/api/js/kotlin.collections.kt @@ -1043,8 +1043,10 @@ public operator fun kotlin.ByteArray.contains(element: kotlin.Byte): kotlin.Bool public operator fun kotlin.CharArray.contains(element: kotlin.Char): kotlin.Boolean +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'any { it == element }' instead to continue using this behavior, or '.asList().contains(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "any { it == element }", imports = {})) public operator fun kotlin.DoubleArray.contains(element: kotlin.Double): kotlin.Boolean +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'any { it == element }' instead to continue using this behavior, or '.asList().contains(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "any { it == element }", imports = {})) public operator fun kotlin.FloatArray.contains(element: kotlin.Float): kotlin.Boolean public operator fun kotlin.IntArray.contains(element: kotlin.Int): kotlin.Boolean @@ -3229,8 +3231,10 @@ public fun kotlin.ByteArray.indexOf(element: kotlin.Byte): kotlin.Int public fun kotlin.CharArray.indexOf(element: kotlin.Char): kotlin.Int +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'indexOfFirst { it == element }' instead to continue using this behavior, or '.asList().indexOf(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "indexOfFirst { it == element }", imports = {})) public fun kotlin.DoubleArray.indexOf(element: kotlin.Double): kotlin.Int +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'indexOfFirst { it == element }' instead to continue using this behavior, or '.asList().indexOf(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "indexOfFirst { it == element }", imports = {})) public fun kotlin.FloatArray.indexOf(element: kotlin.Float): kotlin.Int public fun kotlin.IntArray.indexOf(element: kotlin.Int): kotlin.Int @@ -3584,8 +3588,10 @@ public fun kotlin.ByteArray.lastIndexOf(element: kotlin.Byte): kotlin.Int public fun kotlin.CharArray.lastIndexOf(element: kotlin.Char): kotlin.Int +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'indexOfLast { it == element }' instead to continue using this behavior, or '.asList().lastIndexOf(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "indexOfLast { it == element }", imports = {})) public fun kotlin.DoubleArray.lastIndexOf(element: kotlin.Double): kotlin.Int +@kotlin.Deprecated(message = "The function has unclear behavior when searching for NaN or zero values and will be removed soon. Use 'indexOfLast { it == element }' instead to continue using this behavior, or '.asList().lastIndexOf(element: T)' to get the same search behavior as in a list.", replaceWith = kotlin.ReplaceWith(expression = "indexOfLast { it == element }", imports = {})) public fun kotlin.FloatArray.lastIndexOf(element: kotlin.Float): kotlin.Int public fun kotlin.IntArray.lastIndexOf(element: kotlin.Int): kotlin.Int