[K/N] Advance deprecation level of FP to lesser than Int types to ERROR #KT-30360

This commit is contained in:
Abduqodiri Qurbonzoda
2021-04-07 06:12:11 +03:00
parent 22ca412dd2
commit b18cd24b81
3 changed files with 7 additions and 5 deletions
@@ -10,17 +10,16 @@ import kotlin.test.*
@Test fun runTest() {
val v = Float.POSITIVE_INFINITY
val i = v.toInt()
println("$v $i ${v.toShort()} ${i.toShort()}")
println("$v $i ${i.toShort()}")
val a = 42
val b = Float.MAX_VALUE
println("${a + b}")
val s = Float.NaN.toShort()
val s = Float.NaN.toInt().toShort()
println("NAN2SHORT:: $s")
val d: Float = Float.MAX_VALUE
println("MAX2SHORT:: ${d.toShort()}")
val d2i = d.toInt()
println("$d2i ${d2i.toShort()}")