diff --git a/libraries/stdlib/api/js-v1/kotlin.collections.kt b/libraries/stdlib/api/js-v1/kotlin.collections.kt index 02ca485acf8..a70815a9e2a 100644 --- a/libraries/stdlib/api/js-v1/kotlin.collections.kt +++ b/libraries/stdlib/api/js-v1/kotlin.collections.kt @@ -1098,80 +1098,90 @@ public fun kotlin.Array.contentDeepToString(): kotlin.String /*∆*/ @kotlin.js.library(name = "arrayDeepToString") public fun kotlin.Array?.contentDeepToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.Array.contentEquals(other: kotlin.Array): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.Array?.contentEquals(other: kotlin.Array?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.BooleanArray.contentEquals(other: kotlin.BooleanArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.BooleanArray?.contentEquals(other: kotlin.BooleanArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.ByteArray.contentEquals(other: kotlin.ByteArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.ByteArray?.contentEquals(other: kotlin.ByteArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.CharArray.contentEquals(other: kotlin.CharArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.CharArray?.contentEquals(other: kotlin.CharArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.DoubleArray.contentEquals(other: kotlin.DoubleArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.DoubleArray?.contentEquals(other: kotlin.DoubleArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.FloatArray.contentEquals(other: kotlin.FloatArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.FloatArray?.contentEquals(other: kotlin.FloatArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.IntArray.contentEquals(other: kotlin.IntArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.IntArray?.contentEquals(other: kotlin.IntArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.LongArray.contentEquals(other: kotlin.LongArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.LongArray?.contentEquals(other: kotlin.LongArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.ShortArray.contentEquals(other: kotlin.ShortArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayEquals") public infix fun kotlin.ShortArray?.contentEquals(other: kotlin.ShortArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UByteArray.contentEquals(other: kotlin.UByteArray): kotlin.Boolean @@ -1179,8 +1189,9 @@ public infix fun kotlin.UByteArray.contentEquals(other: kotlin.UByteArray): kotl @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UByteArray?.contentEquals(other: kotlin.UByteArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UIntArray.contentEquals(other: kotlin.UIntArray): kotlin.Boolean @@ -1188,8 +1199,9 @@ public infix fun kotlin.UIntArray.contentEquals(other: kotlin.UIntArray): kotlin @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UIntArray?.contentEquals(other: kotlin.UIntArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.ULongArray.contentEquals(other: kotlin.ULongArray): kotlin.Boolean @@ -1197,8 +1209,9 @@ public infix fun kotlin.ULongArray.contentEquals(other: kotlin.ULongArray): kotl @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.ULongArray?.contentEquals(other: kotlin.ULongArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UShortArray.contentEquals(other: kotlin.UShortArray): kotlin.Boolean @@ -1206,80 +1219,90 @@ public infix fun kotlin.UShortArray.contentEquals(other: kotlin.UShortArray): ko @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UShortArray?.contentEquals(other: kotlin.UShortArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.Array.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.Array?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.BooleanArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.BooleanArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.ByteArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.ByteArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.CharArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.CharArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.DoubleArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.DoubleArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.FloatArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.FloatArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.IntArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.IntArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.LongArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.LongArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.ShortArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayHashCode") public fun kotlin.ShortArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.contentHashCode(): kotlin.Int @@ -1287,8 +1310,9 @@ public fun kotlin.UByteArray.contentHashCode(): kotlin.Int @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.contentHashCode(): kotlin.Int @@ -1296,8 +1320,9 @@ public fun kotlin.UIntArray.contentHashCode(): kotlin.Int @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.contentHashCode(): kotlin.Int @@ -1305,8 +1330,9 @@ public fun kotlin.ULongArray.contentHashCode(): kotlin.Int @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.contentHashCode(): kotlin.Int @@ -1314,80 +1340,90 @@ public fun kotlin.UShortArray.contentHashCode(): kotlin.Int @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.Array.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.Array?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.BooleanArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.BooleanArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.ByteArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.ByteArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.CharArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.CharArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.DoubleArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.DoubleArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.FloatArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.FloatArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.IntArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.IntArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.LongArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.LongArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.ShortArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") /*∆*/ @kotlin.js.library(name = "arrayToString") public fun kotlin.ShortArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.contentToString(): kotlin.String @@ -1395,8 +1431,9 @@ public fun kotlin.UByteArray.contentToString(): kotlin.String @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.contentToString(): kotlin.String @@ -1404,8 +1441,9 @@ public fun kotlin.UIntArray.contentToString(): kotlin.String @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.contentToString(): kotlin.String @@ -1413,8 +1451,9 @@ public fun kotlin.ULongArray.contentToString(): kotlin.String @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.contentToString(): kotlin.String diff --git a/libraries/stdlib/api/js-v1/kotlin.text.kt b/libraries/stdlib/api/js-v1/kotlin.text.kt index 3510921a03f..d04bd502834 100644 --- a/libraries/stdlib/api/js-v1/kotlin.text.kt +++ b/libraries/stdlib/api/js-v1/kotlin.text.kt @@ -835,7 +835,8 @@ public inline fun kotlin.CharSequence.takeWhile(predicate: (kotlin.Char) -> kotl public inline fun kotlin.String.takeWhile(predicate: (kotlin.Char) -> kotlin.Boolean): kotlin.String -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public inline fun kotlin.String.toBoolean(): kotlin.Boolean diff --git a/libraries/stdlib/api/js/kotlin.collections.kt b/libraries/stdlib/api/js/kotlin.collections.kt index 289d84bb1ba..b2d957a8fa7 100644 --- a/libraries/stdlib/api/js/kotlin.collections.kt +++ b/libraries/stdlib/api/js/kotlin.collections.kt @@ -1095,71 +1095,81 @@ public fun kotlin.Array.contentDeepToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") public fun kotlin.Array?.contentDeepToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.Array.contentEquals(other: kotlin.Array): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.Array?.contentEquals(other: kotlin.Array?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.BooleanArray.contentEquals(other: kotlin.BooleanArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.BooleanArray?.contentEquals(other: kotlin.BooleanArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.ByteArray.contentEquals(other: kotlin.ByteArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.ByteArray?.contentEquals(other: kotlin.ByteArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.CharArray.contentEquals(other: kotlin.CharArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.CharArray?.contentEquals(other: kotlin.CharArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.DoubleArray.contentEquals(other: kotlin.DoubleArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.DoubleArray?.contentEquals(other: kotlin.DoubleArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.FloatArray.contentEquals(other: kotlin.FloatArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.FloatArray?.contentEquals(other: kotlin.FloatArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.IntArray.contentEquals(other: kotlin.IntArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.IntArray?.contentEquals(other: kotlin.IntArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.LongArray.contentEquals(other: kotlin.LongArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.LongArray?.contentEquals(other: kotlin.LongArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public infix fun kotlin.ShortArray.contentEquals(other: kotlin.ShortArray): kotlin.Boolean @kotlin.SinceKotlin(version = "1.4") public infix fun kotlin.ShortArray?.contentEquals(other: kotlin.ShortArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UByteArray.contentEquals(other: kotlin.UByteArray): kotlin.Boolean @@ -1167,8 +1177,9 @@ public infix fun kotlin.UByteArray.contentEquals(other: kotlin.UByteArray): kotl @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UByteArray?.contentEquals(other: kotlin.UByteArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UIntArray.contentEquals(other: kotlin.UIntArray): kotlin.Boolean @@ -1176,8 +1187,9 @@ public infix fun kotlin.UIntArray.contentEquals(other: kotlin.UIntArray): kotlin @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UIntArray?.contentEquals(other: kotlin.UIntArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.ULongArray.contentEquals(other: kotlin.ULongArray): kotlin.Boolean @@ -1185,8 +1197,9 @@ public infix fun kotlin.ULongArray.contentEquals(other: kotlin.ULongArray): kotl @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.ULongArray?.contentEquals(other: kotlin.ULongArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UShortArray.contentEquals(other: kotlin.UShortArray): kotlin.Boolean @@ -1194,71 +1207,81 @@ public infix fun kotlin.UShortArray.contentEquals(other: kotlin.UShortArray): ko @kotlin.ExperimentalUnsignedTypes public infix fun kotlin.UShortArray?.contentEquals(other: kotlin.UShortArray?): kotlin.Boolean +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.Array.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") public fun kotlin.Array?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.BooleanArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") public fun kotlin.BooleanArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.ByteArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") public fun kotlin.ByteArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.CharArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") public fun kotlin.CharArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.DoubleArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") public fun kotlin.DoubleArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.FloatArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") public fun kotlin.FloatArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.IntArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") public fun kotlin.IntArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.LongArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") public fun kotlin.LongArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.ShortArray.contentHashCode(): kotlin.Int @kotlin.SinceKotlin(version = "1.4") public fun kotlin.ShortArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.contentHashCode(): kotlin.Int @@ -1266,8 +1289,9 @@ public fun kotlin.UByteArray.contentHashCode(): kotlin.Int @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.contentHashCode(): kotlin.Int @@ -1275,8 +1299,9 @@ public fun kotlin.UIntArray.contentHashCode(): kotlin.Int @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.contentHashCode(): kotlin.Int @@ -1284,8 +1309,9 @@ public fun kotlin.ULongArray.contentHashCode(): kotlin.Int @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.contentHashCode(): kotlin.Int @@ -1293,71 +1319,81 @@ public fun kotlin.UShortArray.contentHashCode(): kotlin.Int @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray?.contentHashCode(): kotlin.Int +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.Array.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") public fun kotlin.Array?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.BooleanArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") public fun kotlin.BooleanArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.ByteArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") public fun kotlin.ByteArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.CharArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") public fun kotlin.CharArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.DoubleArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") public fun kotlin.DoubleArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.FloatArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") public fun kotlin.FloatArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.IntArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") public fun kotlin.IntArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.LongArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") public fun kotlin.LongArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") public fun kotlin.ShortArray.contentToString(): kotlin.String @kotlin.SinceKotlin(version = "1.4") public fun kotlin.ShortArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray.contentToString(): kotlin.String @@ -1365,8 +1401,9 @@ public fun kotlin.UByteArray.contentToString(): kotlin.String @kotlin.ExperimentalUnsignedTypes public fun kotlin.UByteArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray.contentToString(): kotlin.String @@ -1374,8 +1411,9 @@ public fun kotlin.UIntArray.contentToString(): kotlin.String @kotlin.ExperimentalUnsignedTypes public fun kotlin.UIntArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray.contentToString(): kotlin.String @@ -1383,8 +1421,9 @@ public fun kotlin.ULongArray.contentToString(): kotlin.String @kotlin.ExperimentalUnsignedTypes public fun kotlin.ULongArray?.contentToString(): kotlin.String +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") @kotlin.SinceKotlin(version = "1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.ExperimentalUnsignedTypes public fun kotlin.UShortArray.contentToString(): kotlin.String diff --git a/libraries/stdlib/api/js/kotlin.text.kt b/libraries/stdlib/api/js/kotlin.text.kt index 3510921a03f..d04bd502834 100644 --- a/libraries/stdlib/api/js/kotlin.text.kt +++ b/libraries/stdlib/api/js/kotlin.text.kt @@ -835,7 +835,8 @@ public inline fun kotlin.CharSequence.takeWhile(predicate: (kotlin.Char) -> kotl public inline fun kotlin.String.takeWhile(predicate: (kotlin.Char) -> kotlin.Boolean): kotlin.String -@kotlin.internal.LowPriorityInOverloadResolution +@kotlin.Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.") +@kotlin.DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public inline fun kotlin.String.toBoolean(): kotlin.Boolean diff --git a/libraries/stdlib/common/src/generated/_Arrays.kt b/libraries/stdlib/common/src/generated/_Arrays.kt index 8e690e1acbe..784d81dd96d 100644 --- a/libraries/stdlib/common/src/generated/_Arrays.kt +++ b/libraries/stdlib/common/src/generated/_Arrays.kt @@ -6562,8 +6562,9 @@ public expect fun Array?.contentDeepToString(): String * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect infix fun Array.contentEquals(other: Array): Boolean /** @@ -6573,8 +6574,9 @@ public expect infix fun Array.contentEquals(other: Array): Boo * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect infix fun ByteArray.contentEquals(other: ByteArray): Boolean /** @@ -6584,8 +6586,9 @@ public expect infix fun ByteArray.contentEquals(other: ByteArray): Boolean * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect infix fun ShortArray.contentEquals(other: ShortArray): Boolean /** @@ -6595,8 +6598,9 @@ public expect infix fun ShortArray.contentEquals(other: ShortArray): Boolean * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect infix fun IntArray.contentEquals(other: IntArray): Boolean /** @@ -6606,8 +6610,9 @@ public expect infix fun IntArray.contentEquals(other: IntArray): Boolean * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect infix fun LongArray.contentEquals(other: LongArray): Boolean /** @@ -6617,8 +6622,9 @@ public expect infix fun LongArray.contentEquals(other: LongArray): Boolean * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect infix fun FloatArray.contentEquals(other: FloatArray): Boolean /** @@ -6628,8 +6634,9 @@ public expect infix fun FloatArray.contentEquals(other: FloatArray): Boolean * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean /** @@ -6639,8 +6646,9 @@ public expect infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean /** @@ -6650,8 +6658,9 @@ public expect infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect infix fun CharArray.contentEquals(other: CharArray): Boolean /** @@ -6747,64 +6756,73 @@ public expect infix fun CharArray?.contentEquals(other: CharArray?): Boolean /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun Array.contentHashCode(): Int /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun ByteArray.contentHashCode(): Int /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun ShortArray.contentHashCode(): Int /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun IntArray.contentHashCode(): Int /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun LongArray.contentHashCode(): Int /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun FloatArray.contentHashCode(): Int /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun DoubleArray.contentHashCode(): Int /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun BooleanArray.contentHashCode(): Int /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun CharArray.contentHashCode(): Int /** @@ -6866,8 +6884,9 @@ public expect fun CharArray?.contentHashCode(): Int * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun Array.contentToString(): String /** @@ -6875,8 +6894,9 @@ public expect fun Array.contentToString(): String * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun ByteArray.contentToString(): String /** @@ -6884,8 +6904,9 @@ public expect fun ByteArray.contentToString(): String * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun ShortArray.contentToString(): String /** @@ -6893,8 +6914,9 @@ public expect fun ShortArray.contentToString(): String * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun IntArray.contentToString(): String /** @@ -6902,8 +6924,9 @@ public expect fun IntArray.contentToString(): String * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun LongArray.contentToString(): String /** @@ -6911,8 +6934,9 @@ public expect fun LongArray.contentToString(): String * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun FloatArray.contentToString(): String /** @@ -6920,8 +6944,9 @@ public expect fun FloatArray.contentToString(): String * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun DoubleArray.contentToString(): String /** @@ -6929,8 +6954,9 @@ public expect fun DoubleArray.contentToString(): String * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun BooleanArray.contentToString(): String /** @@ -6938,8 +6964,9 @@ public expect fun BooleanArray.contentToString(): String * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public expect fun CharArray.contentToString(): String /** diff --git a/libraries/stdlib/common/src/generated/_UArrays.kt b/libraries/stdlib/common/src/generated/_UArrays.kt index 2b26bcb185d..9810e5b14a3 100644 --- a/libraries/stdlib/common/src/generated/_UArrays.kt +++ b/libraries/stdlib/common/src/generated/_UArrays.kt @@ -3194,8 +3194,9 @@ public inline fun ShortArray.asUShortArray(): UShortArray { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public infix fun UIntArray.contentEquals(other: UIntArray): Boolean { return this.contentEquals(other) @@ -3205,8 +3206,9 @@ public infix fun UIntArray.contentEquals(other: UIntArray): Boolean { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public infix fun ULongArray.contentEquals(other: ULongArray): Boolean { return this.contentEquals(other) @@ -3216,8 +3218,9 @@ public infix fun ULongArray.contentEquals(other: ULongArray): Boolean { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public infix fun UByteArray.contentEquals(other: UByteArray): Boolean { return this.contentEquals(other) @@ -3227,8 +3230,9 @@ public infix fun UByteArray.contentEquals(other: UByteArray): Boolean { * Returns `true` if the two specified arrays are *structurally* equal to one another, * i.e. contain the same number of the same elements in the same order. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public infix fun UShortArray.contentEquals(other: UShortArray): Boolean { return this.contentEquals(other) @@ -3277,8 +3281,9 @@ public infix fun UShortArray?.contentEquals(other: UShortArray?): Boolean { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public fun UIntArray.contentHashCode(): Int { return this.contentHashCode() @@ -3287,8 +3292,9 @@ public fun UIntArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public fun ULongArray.contentHashCode(): Int { return this.contentHashCode() @@ -3297,8 +3303,9 @@ public fun ULongArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public fun UByteArray.contentHashCode(): Int { return this.contentHashCode() @@ -3307,8 +3314,9 @@ public fun UByteArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public fun UShortArray.contentHashCode(): Int { return this.contentHashCode() @@ -3355,8 +3363,9 @@ public fun UShortArray?.contentHashCode(): Int { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public fun UIntArray.contentToString(): String { return this.contentToString() @@ -3367,8 +3376,9 @@ public fun UIntArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public fun ULongArray.contentToString(): String { return this.contentToString() @@ -3379,8 +3389,9 @@ public fun ULongArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public fun UByteArray.contentToString(): String { return this.contentToString() @@ -3391,8 +3402,9 @@ public fun UByteArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.3") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @ExperimentalUnsignedTypes public fun UShortArray.contentToString(): String { return this.contentToString() diff --git a/libraries/stdlib/common/src/kotlin/TextH.kt b/libraries/stdlib/common/src/kotlin/TextH.kt index c7d9b5a5146..6c4c9a7172f 100644 --- a/libraries/stdlib/common/src/kotlin/TextH.kt +++ b/libraries/stdlib/common/src/kotlin/TextH.kt @@ -306,9 +306,10 @@ public expect val String.Companion.CASE_INSENSITIVE_ORDER: Comparator /** * Returns `true` if the content of this string is equal to the word "true", ignoring case, and `false` otherwise. */ -@LowPriorityInOverloadResolution +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly -public inline fun String.toBoolean(): Boolean = this.toBoolean() +public expect fun String.toBoolean(): Boolean /** * Returns `true` if this string is not `null` and its content is equal to the word "true", ignoring case, and `false` otherwise. diff --git a/libraries/stdlib/js-ir/src/generated/_ArraysJs.kt b/libraries/stdlib/js-ir/src/generated/_ArraysJs.kt index 85090216f5d..c5a9796926a 100644 --- a/libraries/stdlib/js-ir/src/generated/_ArraysJs.kt +++ b/libraries/stdlib/js-ir/src/generated/_ArraysJs.kt @@ -275,8 +275,9 @@ public actual fun Array?.contentDeepToString(): String { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun Array.contentEquals(other: Array): Boolean { return this.contentEquals(other) } @@ -288,8 +289,9 @@ public actual infix fun Array.contentEquals(other: Array): Boo * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean { return this.contentEquals(other) } @@ -301,8 +303,9 @@ public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean { return this.contentEquals(other) } @@ -314,8 +317,9 @@ public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun IntArray.contentEquals(other: IntArray): Boolean { return this.contentEquals(other) } @@ -327,8 +331,9 @@ public actual infix fun IntArray.contentEquals(other: IntArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun LongArray.contentEquals(other: LongArray): Boolean { return this.contentEquals(other) } @@ -340,8 +345,9 @@ public actual infix fun LongArray.contentEquals(other: LongArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean { return this.contentEquals(other) } @@ -353,8 +359,9 @@ public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { return this.contentEquals(other) } @@ -366,8 +373,9 @@ public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { return this.contentEquals(other) } @@ -379,8 +387,9 @@ public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun CharArray.contentEquals(other: CharArray): Boolean { return this.contentEquals(other) } @@ -496,8 +505,9 @@ public actual infix fun CharArray?.contentEquals(other: CharArray?): Boolean { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun Array.contentHashCode(): Int { return this.contentHashCode() } @@ -505,8 +515,9 @@ public actual fun Array.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun ByteArray.contentHashCode(): Int { return this.contentHashCode() } @@ -514,8 +525,9 @@ public actual fun ByteArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun ShortArray.contentHashCode(): Int { return this.contentHashCode() } @@ -523,8 +535,9 @@ public actual fun ShortArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun IntArray.contentHashCode(): Int { return this.contentHashCode() } @@ -532,8 +545,9 @@ public actual fun IntArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun LongArray.contentHashCode(): Int { return this.contentHashCode() } @@ -541,8 +555,9 @@ public actual fun LongArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun FloatArray.contentHashCode(): Int { return this.contentHashCode() } @@ -550,8 +565,9 @@ public actual fun FloatArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun DoubleArray.contentHashCode(): Int { return this.contentHashCode() } @@ -559,8 +575,9 @@ public actual fun DoubleArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun BooleanArray.contentHashCode(): Int { return this.contentHashCode() } @@ -568,8 +585,9 @@ public actual fun BooleanArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun CharArray.contentHashCode(): Int { return this.contentHashCode() } @@ -651,8 +669,9 @@ public actual fun CharArray?.contentHashCode(): Int { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun Array.contentToString(): String { return this.contentToString() } @@ -662,8 +681,9 @@ public actual fun Array.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun ByteArray.contentToString(): String { return this.contentToString() } @@ -673,8 +693,9 @@ public actual fun ByteArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun ShortArray.contentToString(): String { return this.contentToString() } @@ -684,8 +705,9 @@ public actual fun ShortArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun IntArray.contentToString(): String { return this.contentToString() } @@ -695,8 +717,9 @@ public actual fun IntArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun LongArray.contentToString(): String { return this.contentToString() } @@ -706,8 +729,9 @@ public actual fun LongArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun FloatArray.contentToString(): String { return this.contentToString() } @@ -717,8 +741,9 @@ public actual fun FloatArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun DoubleArray.contentToString(): String { return this.contentToString() } @@ -728,8 +753,9 @@ public actual fun DoubleArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun BooleanArray.contentToString(): String { return this.contentToString() } @@ -739,8 +765,9 @@ public actual fun BooleanArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun CharArray.contentToString(): String { return this.contentToString() } diff --git a/libraries/stdlib/js/src/generated/_ArraysJs.kt b/libraries/stdlib/js/src/generated/_ArraysJs.kt index d8d7cb88ba0..fe21624e672 100644 --- a/libraries/stdlib/js/src/generated/_ArraysJs.kt +++ b/libraries/stdlib/js/src/generated/_ArraysJs.kt @@ -278,8 +278,9 @@ public actual fun Array?.contentDeepToString(): String { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun Array.contentEquals(other: Array): Boolean { return this.contentEquals(other) } @@ -291,8 +292,9 @@ public actual infix fun Array.contentEquals(other: Array): Boo * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean { return this.contentEquals(other) } @@ -304,8 +306,9 @@ public actual infix fun ByteArray.contentEquals(other: ByteArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean { return this.contentEquals(other) } @@ -317,8 +320,9 @@ public actual infix fun ShortArray.contentEquals(other: ShortArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun IntArray.contentEquals(other: IntArray): Boolean { return this.contentEquals(other) } @@ -330,8 +334,9 @@ public actual infix fun IntArray.contentEquals(other: IntArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun LongArray.contentEquals(other: LongArray): Boolean { return this.contentEquals(other) } @@ -343,8 +348,9 @@ public actual infix fun LongArray.contentEquals(other: LongArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean { return this.contentEquals(other) } @@ -356,8 +362,9 @@ public actual infix fun FloatArray.contentEquals(other: FloatArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { return this.contentEquals(other) } @@ -369,8 +376,9 @@ public actual infix fun DoubleArray.contentEquals(other: DoubleArray): Boolean { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean { return this.contentEquals(other) } @@ -382,8 +390,9 @@ public actual infix fun BooleanArray.contentEquals(other: BooleanArray): Boolean * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual infix fun CharArray.contentEquals(other: CharArray): Boolean { return this.contentEquals(other) } @@ -508,8 +517,9 @@ public actual infix fun CharArray?.contentEquals(other: CharArray?): Boolean { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun Array.contentHashCode(): Int { return this.contentHashCode() } @@ -517,8 +527,9 @@ public actual fun Array.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun ByteArray.contentHashCode(): Int { return this.contentHashCode() } @@ -526,8 +537,9 @@ public actual fun ByteArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun ShortArray.contentHashCode(): Int { return this.contentHashCode() } @@ -535,8 +547,9 @@ public actual fun ShortArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun IntArray.contentHashCode(): Int { return this.contentHashCode() } @@ -544,8 +557,9 @@ public actual fun IntArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun LongArray.contentHashCode(): Int { return this.contentHashCode() } @@ -553,8 +567,9 @@ public actual fun LongArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun FloatArray.contentHashCode(): Int { return this.contentHashCode() } @@ -562,8 +577,9 @@ public actual fun FloatArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun DoubleArray.contentHashCode(): Int { return this.contentHashCode() } @@ -571,8 +587,9 @@ public actual fun DoubleArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun BooleanArray.contentHashCode(): Int { return this.contentHashCode() } @@ -580,8 +597,9 @@ public actual fun BooleanArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun CharArray.contentHashCode(): Int { return this.contentHashCode() } @@ -672,8 +690,9 @@ public actual fun CharArray?.contentHashCode(): Int { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun Array.contentToString(): String { return this.contentToString() } @@ -683,8 +702,9 @@ public actual fun Array.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun ByteArray.contentToString(): String { return this.contentToString() } @@ -694,8 +714,9 @@ public actual fun ByteArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun ShortArray.contentToString(): String { return this.contentToString() } @@ -705,8 +726,9 @@ public actual fun ShortArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun IntArray.contentToString(): String { return this.contentToString() } @@ -716,8 +738,9 @@ public actual fun IntArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun LongArray.contentToString(): String { return this.contentToString() } @@ -727,8 +750,9 @@ public actual fun LongArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun FloatArray.contentToString(): String { return this.contentToString() } @@ -738,8 +762,9 @@ public actual fun FloatArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun DoubleArray.contentToString(): String { return this.contentToString() } @@ -749,8 +774,9 @@ public actual fun DoubleArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun BooleanArray.contentToString(): String { return this.contentToString() } @@ -760,8 +786,9 @@ public actual fun BooleanArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") public actual fun CharArray.contentToString(): String { return this.contentToString() } diff --git a/libraries/stdlib/js/src/kotlin/text/numberConversions.kt b/libraries/stdlib/js/src/kotlin/text/numberConversions.kt index ead48a0f658..d69754fbd6a 100644 --- a/libraries/stdlib/js/src/kotlin/text/numberConversions.kt +++ b/libraries/stdlib/js/src/kotlin/text/numberConversions.kt @@ -6,6 +6,14 @@ package kotlin.text +/** + * Returns `true` if the content of this string is equal to the word "true", ignoring case, and `false` otherwise. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@kotlin.internal.InlineOnly +public actual inline fun String.toBoolean(): Boolean = this.toBoolean() + /** * Returns `true` if this string is not `null` and its content is equal to the word "true", ignoring case, and `false` otherwise. */ diff --git a/libraries/stdlib/jvm/src/generated/_ArraysJvm.kt b/libraries/stdlib/jvm/src/generated/_ArraysJvm.kt index 37ea03415f0..abb8061b6b3 100644 --- a/libraries/stdlib/jvm/src/generated/_ArraysJvm.kt +++ b/libraries/stdlib/jvm/src/generated/_ArraysJvm.kt @@ -553,8 +553,9 @@ public actual inline fun Array?.contentDeepToString(): String { * The elements are compared for equality with the [equals][Any.equals] function. * For floating point numbers it means that `NaN` is equal to itself and `-0.0` is not equal to `0.0`. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline infix fun Array.contentEquals(other: Array): Boolean { return this.contentEquals(other) @@ -567,8 +568,9 @@ public actual inline infix fun Array.contentEquals(other: Array Array.contentHashCode(): Int { return this.contentHashCode() @@ -811,8 +821,9 @@ public actual inline fun Array.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun ByteArray.contentHashCode(): Int { return this.contentHashCode() @@ -821,8 +832,9 @@ public actual inline fun ByteArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun ShortArray.contentHashCode(): Int { return this.contentHashCode() @@ -831,8 +843,9 @@ public actual inline fun ShortArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun IntArray.contentHashCode(): Int { return this.contentHashCode() @@ -841,8 +854,9 @@ public actual inline fun IntArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun LongArray.contentHashCode(): Int { return this.contentHashCode() @@ -851,8 +865,9 @@ public actual inline fun LongArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun FloatArray.contentHashCode(): Int { return this.contentHashCode() @@ -861,8 +876,9 @@ public actual inline fun FloatArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun DoubleArray.contentHashCode(): Int { return this.contentHashCode() @@ -871,8 +887,9 @@ public actual inline fun DoubleArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun BooleanArray.contentHashCode(): Int { return this.contentHashCode() @@ -881,8 +898,9 @@ public actual inline fun BooleanArray.contentHashCode(): Int { /** * Returns a hash code based on the contents of this array as if it is [List]. */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun CharArray.contentHashCode(): Int { return this.contentHashCode() @@ -983,8 +1001,9 @@ public actual inline fun CharArray?.contentHashCode(): Int { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun Array.contentToString(): String { return this.contentToString() @@ -995,8 +1014,9 @@ public actual inline fun Array.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun ByteArray.contentToString(): String { return this.contentToString() @@ -1007,8 +1027,9 @@ public actual inline fun ByteArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun ShortArray.contentToString(): String { return this.contentToString() @@ -1019,8 +1040,9 @@ public actual inline fun ShortArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun IntArray.contentToString(): String { return this.contentToString() @@ -1031,8 +1053,9 @@ public actual inline fun IntArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun LongArray.contentToString(): String { return this.contentToString() @@ -1043,8 +1066,9 @@ public actual inline fun LongArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun FloatArray.contentToString(): String { return this.contentToString() @@ -1055,8 +1079,9 @@ public actual inline fun FloatArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun DoubleArray.contentToString(): String { return this.contentToString() @@ -1067,8 +1092,9 @@ public actual inline fun DoubleArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun BooleanArray.contentToString(): String { return this.contentToString() @@ -1079,8 +1105,9 @@ public actual inline fun BooleanArray.contentToString(): String { * * @sample samples.collections.Arrays.ContentOperations.contentToString */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") @SinceKotlin("1.1") -@kotlin.internal.LowPriorityInOverloadResolution +@DeprecatedSinceKotlin(hiddenSince = "1.4") @kotlin.internal.InlineOnly public actual inline fun CharArray.contentToString(): String { return this.contentToString() diff --git a/libraries/stdlib/jvm/src/kotlin/text/StringNumberConversionsJVM.kt b/libraries/stdlib/jvm/src/kotlin/text/StringNumberConversionsJVM.kt index 91e9b37f97d..008a9a9cbd9 100644 --- a/libraries/stdlib/jvm/src/kotlin/text/StringNumberConversionsJVM.kt +++ b/libraries/stdlib/jvm/src/kotlin/text/StringNumberConversionsJVM.kt @@ -45,6 +45,14 @@ public actual inline fun Int.toString(radix: Int): String = java.lang.Integer.to @kotlin.internal.InlineOnly public actual inline fun Long.toString(radix: Int): String = java.lang.Long.toString(this, checkRadix(radix)) +/** + * Returns `true` if the content of this string is equal to the word "true", ignoring case, and `false` otherwise. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@kotlin.internal.InlineOnly +public actual inline fun String.toBoolean(): Boolean = this.toBoolean() + /** * Returns `true` if this string is not `null` and its content is equal to the word "true", ignoring case, and `false` otherwise. */ diff --git a/libraries/stdlib/jvm/src/kotlin/text/StringsJVM.kt b/libraries/stdlib/jvm/src/kotlin/text/StringsJVM.kt index 4433d997aa5..daaf285785b 100644 --- a/libraries/stdlib/jvm/src/kotlin/text/StringsJVM.kt +++ b/libraries/stdlib/jvm/src/kotlin/text/StringsJVM.kt @@ -284,17 +284,40 @@ public inline fun String.format(vararg args: Any?): String = java.lang.String.fo @kotlin.internal.InlineOnly public inline fun String.Companion.format(format: String, vararg args: Any?): String = java.lang.String.format(format, *args) +/** + * Uses this string as a format string and returns a string obtained by substituting the specified arguments, + * using the specified locale. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@kotlin.internal.InlineOnly +public inline fun String.format(locale: Locale, vararg args: Any?): String = java.lang.String.format(locale, this, *args) + /** * Uses this string as a format string and returns a string obtained by substituting the specified arguments, * using the specified locale. If [locale] is `null` then no localization is applied. */ +@SinceKotlin("1.4") +@JvmName("formatNullable") @kotlin.internal.InlineOnly public inline fun String.format(locale: Locale?, vararg args: Any?): String = java.lang.String.format(locale, this, *args) +/** + * Uses the provided [format] as a format string and returns a string obtained by substituting the specified arguments, + * using the specified locale. + */ +@Deprecated("Use Kotlin compiler 1.4 to avoid deprecation warning.") +@DeprecatedSinceKotlin(hiddenSince = "1.4") +@kotlin.internal.InlineOnly +public inline fun String.Companion.format(locale: Locale, format: String, vararg args: Any?): String = + java.lang.String.format(locale, format, *args) + /** * Uses the provided [format] as a format string and returns a string obtained by substituting the specified arguments, * using the specified locale. If [locale] is `null` then no localization is applied. */ +@SinceKotlin("1.4") +@JvmName("formatNullable") @kotlin.internal.InlineOnly public inline fun String.Companion.format(locale: Locale?, format: String, vararg args: Any?): String = java.lang.String.format(locale, format, *args) diff --git a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt index 65d26adb490..0a747cae399 100644 --- a/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt +++ b/libraries/tools/binary-compatibility-validator/reference-public-api/kotlin-stdlib-runtime-merged.txt @@ -2625,27 +2625,27 @@ public final class kotlin/collections/unsigned/UArraysKt { public static synthetic fun binarySearch-WpHrYlw$default ([BBIIILjava/lang/Object;)I public static final fun contentEquals-FGO6Aew ([S[S)Z public static final fun contentEquals-KJPZfPQ ([I[I)Z - public static final fun contentEquals-ctEhBpI ([I[I)Z + public static final synthetic fun contentEquals-ctEhBpI ([I[I)Z public static final fun contentEquals-kV0jMPg ([B[B)Z - public static final fun contentEquals-kdPth3s ([B[B)Z + public static final synthetic fun contentEquals-kdPth3s ([B[B)Z public static final fun contentEquals-lec5QzE ([J[J)Z - public static final fun contentEquals-mazbYpA ([S[S)Z - public static final fun contentEquals-us8wMrg ([J[J)Z - public static final fun contentHashCode--ajY-9A ([I)I + public static final synthetic fun contentEquals-mazbYpA ([S[S)Z + public static final synthetic fun contentEquals-us8wMrg ([J[J)Z + public static final synthetic fun contentHashCode--ajY-9A ([I)I public static final fun contentHashCode-2csIQuQ ([B)I - public static final fun contentHashCode-GBYM_sE ([B)I - public static final fun contentHashCode-QwZRm1k ([J)I + public static final synthetic fun contentHashCode-GBYM_sE ([B)I + public static final synthetic fun contentHashCode-QwZRm1k ([J)I public static final fun contentHashCode-XUkPCBk ([I)I public static final fun contentHashCode-d-6D3K8 ([S)I - public static final fun contentHashCode-rL5Bavg ([S)I + public static final synthetic fun contentHashCode-rL5Bavg ([S)I public static final fun contentHashCode-uLth9ew ([J)I - public static final fun contentToString--ajY-9A ([I)Ljava/lang/String; + public static final synthetic fun contentToString--ajY-9A ([I)Ljava/lang/String; public static final fun contentToString-2csIQuQ ([B)Ljava/lang/String; - public static final fun contentToString-GBYM_sE ([B)Ljava/lang/String; - public static final fun contentToString-QwZRm1k ([J)Ljava/lang/String; + public static final synthetic fun contentToString-GBYM_sE ([B)Ljava/lang/String; + public static final synthetic fun contentToString-QwZRm1k ([J)Ljava/lang/String; public static final fun contentToString-XUkPCBk ([I)Ljava/lang/String; public static final fun contentToString-d-6D3K8 ([S)Ljava/lang/String; - public static final fun contentToString-rL5Bavg ([S)Ljava/lang/String; + public static final synthetic fun contentToString-rL5Bavg ([S)Ljava/lang/String; public static final fun contentToString-uLth9ew ([J)Ljava/lang/String; public static final fun drop-PpDY95g ([BI)Ljava/util/List; public static final fun drop-nggk6HY ([SI)Ljava/util/List; diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt index d380fb01eea..e063fea8f4b 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt @@ -82,11 +82,16 @@ object ArrayOps : TemplateGroupBase() { } } + private fun MemberBuilder.deprecatedNonNullArrayFunction() { + deprecate("Use Kotlin compiler 1.4 to avoid deprecation warning.") + annotation("""@DeprecatedSinceKotlin(hiddenSince = "1.4")""") + } + val f_contentEquals = fn("contentEquals(other: SELF)") { include(ArraysOfObjects, ArraysOfPrimitives, ArraysOfUnsigned) } builder { since("1.1") - annotation("@kotlin.internal.LowPriorityInOverloadResolution") + deprecatedNonNullArrayFunction() infix(true) doc { """ @@ -247,7 +252,7 @@ object ArrayOps : TemplateGroupBase() { include(ArraysOfObjects, ArraysOfPrimitives, ArraysOfUnsigned) } builder { since("1.1") - annotation("@kotlin.internal.LowPriorityInOverloadResolution") + deprecatedNonNullArrayFunction() doc { """ Returns a string representation of the contents of the specified array as if it is [List]. @@ -369,7 +374,7 @@ object ArrayOps : TemplateGroupBase() { include(ArraysOfObjects, ArraysOfPrimitives, ArraysOfUnsigned) } builder { since("1.1") - annotation("@kotlin.internal.LowPriorityInOverloadResolution") + deprecatedNonNullArrayFunction() doc { "Returns a hash code based on the contents of this array as if it is [List]." }