diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/Char.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/Char.kt index 58b9c0a14c7..6b2f7a44df9 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/Char.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/Char.kt @@ -181,11 +181,15 @@ public class Char private constructor() : Comparable { /** * The minimum radix available for conversion to and from strings. */ + @Deprecated("Introduce your own constant with the value of `2`", ReplaceWith("2")) + @DeprecatedSinceKotlin(warningSince = "1.9") public const val MIN_RADIX: Int = 2 /** * The maximum radix available for conversion to and from strings. */ + @Deprecated("Introduce your own constant with the value of `36", ReplaceWith("36")) + @DeprecatedSinceKotlin(warningSince = "1.9") public const val MAX_RADIX: Int = 36 } diff --git a/libraries/stdlib/native-wasm/src/kotlin/text/Char.kt b/libraries/stdlib/native-wasm/src/kotlin/text/Char.kt index 69d98cf3d61..88b08a35ce4 100644 --- a/libraries/stdlib/native-wasm/src/kotlin/text/Char.kt +++ b/libraries/stdlib/native-wasm/src/kotlin/text/Char.kt @@ -222,6 +222,7 @@ public actual val Char.category: CharCategory * Checks whether the given [radix] is valid radix for string to number and number to string conversion. */ @PublishedApi +@Suppress("DEPRECATION") internal actual fun checkRadix(radix: Int): Int { if(radix !in Char.MIN_RADIX..Char.MAX_RADIX) { throw IllegalArgumentException("radix $radix was not in valid range ${Char.MIN_RADIX..Char.MAX_RADIX}")