Advance deprecation level of FP to lesser than Int types to ERROR #KT-30360
This commit is contained in:
@@ -1312,6 +1312,7 @@ public final class Double : kotlin.Number, kotlin.Comparable<kotlin.Double> {
|
||||
public final operator fun times(other: kotlin.Short): kotlin.Double
|
||||
|
||||
@kotlin.Deprecated(message = "Unclear conversion. To achieve the same result convert to Int explicitly and then to Byte.", replaceWith = kotlin.ReplaceWith(expression = "toInt().toByte()", imports = {}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.3")
|
||||
public open override fun toByte(): kotlin.Byte
|
||||
|
||||
public open override fun toChar(): kotlin.Char
|
||||
@@ -1325,6 +1326,7 @@ public final class Double : kotlin.Number, kotlin.Comparable<kotlin.Double> {
|
||||
public open override fun toLong(): kotlin.Long
|
||||
|
||||
@kotlin.Deprecated(message = "Unclear conversion. To achieve the same result convert to Int explicitly and then to Short.", replaceWith = kotlin.ReplaceWith(expression = "toInt().toShort()", imports = {}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.3")
|
||||
public open override fun toShort(): kotlin.Short
|
||||
|
||||
public final operator fun unaryMinus(): kotlin.Double
|
||||
@@ -1547,6 +1549,7 @@ public final class Float : kotlin.Number, kotlin.Comparable<kotlin.Float> {
|
||||
public final operator fun times(other: kotlin.Short): kotlin.Float
|
||||
|
||||
@kotlin.Deprecated(message = "Unclear conversion. To achieve the same result convert to Int explicitly and then to Byte.", replaceWith = kotlin.ReplaceWith(expression = "toInt().toByte()", imports = {}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.3")
|
||||
public open override fun toByte(): kotlin.Byte
|
||||
|
||||
public open override fun toChar(): kotlin.Char
|
||||
@@ -1560,6 +1563,7 @@ public final class Float : kotlin.Number, kotlin.Comparable<kotlin.Float> {
|
||||
public open override fun toLong(): kotlin.Long
|
||||
|
||||
@kotlin.Deprecated(message = "Unclear conversion. To achieve the same result convert to Int explicitly and then to Short.", replaceWith = kotlin.ReplaceWith(expression = "toInt().toShort()", imports = {}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.3")
|
||||
public open override fun toShort(): kotlin.Short
|
||||
|
||||
public final operator fun unaryMinus(): kotlin.Float
|
||||
|
||||
@@ -1287,6 +1287,7 @@ public final class Double : kotlin.Number, kotlin.Comparable<kotlin.Double> {
|
||||
public final operator fun times(other: kotlin.Short): kotlin.Double
|
||||
|
||||
@kotlin.Deprecated(message = "Unclear conversion. To achieve the same result convert to Int explicitly and then to Byte.", replaceWith = kotlin.ReplaceWith(expression = "toInt().toByte()", imports = {}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.3")
|
||||
public open override fun toByte(): kotlin.Byte
|
||||
|
||||
public open override fun toChar(): kotlin.Char
|
||||
@@ -1300,6 +1301,7 @@ public final class Double : kotlin.Number, kotlin.Comparable<kotlin.Double> {
|
||||
public open override fun toLong(): kotlin.Long
|
||||
|
||||
@kotlin.Deprecated(message = "Unclear conversion. To achieve the same result convert to Int explicitly and then to Short.", replaceWith = kotlin.ReplaceWith(expression = "toInt().toShort()", imports = {}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.3")
|
||||
public open override fun toShort(): kotlin.Short
|
||||
|
||||
/*∆*/ public open override fun toString(): kotlin.String
|
||||
@@ -1526,6 +1528,7 @@ public final class Float : kotlin.Number, kotlin.Comparable<kotlin.Float> {
|
||||
public final operator fun times(other: kotlin.Short): kotlin.Float
|
||||
|
||||
@kotlin.Deprecated(message = "Unclear conversion. To achieve the same result convert to Int explicitly and then to Byte.", replaceWith = kotlin.ReplaceWith(expression = "toInt().toByte()", imports = {}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.3")
|
||||
public open override fun toByte(): kotlin.Byte
|
||||
|
||||
public open override fun toChar(): kotlin.Char
|
||||
@@ -1539,6 +1542,7 @@ public final class Float : kotlin.Number, kotlin.Comparable<kotlin.Float> {
|
||||
public open override fun toLong(): kotlin.Long
|
||||
|
||||
@kotlin.Deprecated(message = "Unclear conversion. To achieve the same result convert to Int explicitly and then to Short.", replaceWith = kotlin.ReplaceWith(expression = "toInt().toShort()", imports = {}))
|
||||
@kotlin.DeprecatedSinceKotlin(errorSince = "1.5", warningSince = "1.3")
|
||||
public open override fun toShort(): kotlin.Short
|
||||
|
||||
/*∆*/ public open override fun toString(): kotlin.String
|
||||
|
||||
Reference in New Issue
Block a user