Advance deprecation level of mixed Int/FP overloads of ClosedRange.contains to HIDDEN KT-22423
This commit is contained in:
@@ -214,7 +214,7 @@ public operator fun ClosedRange<Short>.contains(value: Byte): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("doubleRangeContains")
|
||||
public operator fun ClosedRange<Double>.contains(value: Byte): Boolean {
|
||||
return contains(value.toDouble())
|
||||
@@ -224,7 +224,7 @@ public operator fun ClosedRange<Double>.contains(value: Byte): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("floatRangeContains")
|
||||
public operator fun ClosedRange<Float>.contains(value: Byte): Boolean {
|
||||
return contains(value.toFloat())
|
||||
@@ -234,7 +234,7 @@ public operator fun ClosedRange<Float>.contains(value: Byte): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("intRangeContains")
|
||||
public operator fun ClosedRange<Int>.contains(value: Double): Boolean {
|
||||
return value.toIntExactOrNull().let { if (it != null) contains(it) else false }
|
||||
@@ -244,7 +244,7 @@ public operator fun ClosedRange<Int>.contains(value: Double): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("longRangeContains")
|
||||
public operator fun ClosedRange<Long>.contains(value: Double): Boolean {
|
||||
return value.toLongExactOrNull().let { if (it != null) contains(it) else false }
|
||||
@@ -254,7 +254,7 @@ public operator fun ClosedRange<Long>.contains(value: Double): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("byteRangeContains")
|
||||
public operator fun ClosedRange<Byte>.contains(value: Double): Boolean {
|
||||
return value.toByteExactOrNull().let { if (it != null) contains(it) else false }
|
||||
@@ -264,7 +264,7 @@ public operator fun ClosedRange<Byte>.contains(value: Double): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("shortRangeContains")
|
||||
public operator fun ClosedRange<Short>.contains(value: Double): Boolean {
|
||||
return value.toShortExactOrNull().let { if (it != null) contains(it) else false }
|
||||
@@ -282,7 +282,7 @@ public operator fun ClosedRange<Float>.contains(value: Double): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("intRangeContains")
|
||||
public operator fun ClosedRange<Int>.contains(value: Float): Boolean {
|
||||
return value.toIntExactOrNull().let { if (it != null) contains(it) else false }
|
||||
@@ -292,7 +292,7 @@ public operator fun ClosedRange<Int>.contains(value: Float): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("longRangeContains")
|
||||
public operator fun ClosedRange<Long>.contains(value: Float): Boolean {
|
||||
return value.toLongExactOrNull().let { if (it != null) contains(it) else false }
|
||||
@@ -302,7 +302,7 @@ public operator fun ClosedRange<Long>.contains(value: Float): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("byteRangeContains")
|
||||
public operator fun ClosedRange<Byte>.contains(value: Float): Boolean {
|
||||
return value.toByteExactOrNull().let { if (it != null) contains(it) else false }
|
||||
@@ -312,7 +312,7 @@ public operator fun ClosedRange<Byte>.contains(value: Float): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("shortRangeContains")
|
||||
public operator fun ClosedRange<Short>.contains(value: Float): Boolean {
|
||||
return value.toShortExactOrNull().let { if (it != null) contains(it) else false }
|
||||
@@ -354,7 +354,7 @@ public operator fun ClosedRange<Short>.contains(value: Int): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("doubleRangeContains")
|
||||
public operator fun ClosedRange<Double>.contains(value: Int): Boolean {
|
||||
return contains(value.toDouble())
|
||||
@@ -364,7 +364,7 @@ public operator fun ClosedRange<Double>.contains(value: Int): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("floatRangeContains")
|
||||
public operator fun ClosedRange<Float>.contains(value: Int): Boolean {
|
||||
return contains(value.toFloat())
|
||||
@@ -398,7 +398,7 @@ public operator fun ClosedRange<Short>.contains(value: Long): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("doubleRangeContains")
|
||||
public operator fun ClosedRange<Double>.contains(value: Long): Boolean {
|
||||
return contains(value.toDouble())
|
||||
@@ -408,7 +408,7 @@ public operator fun ClosedRange<Double>.contains(value: Long): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("floatRangeContains")
|
||||
public operator fun ClosedRange<Float>.contains(value: Long): Boolean {
|
||||
return contains(value.toFloat())
|
||||
@@ -442,7 +442,7 @@ public operator fun ClosedRange<Byte>.contains(value: Short): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("doubleRangeContains")
|
||||
public operator fun ClosedRange<Double>.contains(value: Short): Boolean {
|
||||
return contains(value.toDouble())
|
||||
@@ -452,7 +452,7 @@ public operator fun ClosedRange<Double>.contains(value: Short): Boolean {
|
||||
* Checks if the specified [value] belongs to this range.
|
||||
*/
|
||||
@Deprecated("This `contains` operation mixing integer and floating point arguments has ambiguous semantics and is going to be removed.")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.3", errorSince = "1.4", hiddenSince = "1.5")
|
||||
@kotlin.jvm.JvmName("floatRangeContains")
|
||||
public operator fun ClosedRange<Float>.contains(value: Short): Boolean {
|
||||
return contains(value.toFloat())
|
||||
|
||||
Reference in New Issue
Block a user