FIR: Update integer literal-related tests

They started failing once we began reporting diagnostics from completion

^KT-46419 Relates
This commit is contained in:
Denis.Zharkov
2021-04-27 13:22:36 +03:00
committed by teamcityserver
parent 42d387925d
commit cd401b5b8a
18 changed files with 83 additions and 44 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val a1: Byte = 1.plus(1)
val a2: Short = 1.plus(1)
@@ -18,4 +20,4 @@ fun box(): String {
if (a8 != 1) return "fail 8"
return "OK"
}
}
@@ -1,3 +1,5 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val a1: Byte? = 1.plus(1)
val a2: Short? = 1.plus(1)
+3 -1
View File
@@ -1,3 +1,5 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val a1: Byte = 1 + 1
val a2: Short = 1 + 1
@@ -18,4 +20,4 @@ fun box(): String {
if (a8 != 1) return "fail 8"
return "OK"
}
}
@@ -1,3 +1,5 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val a1: Byte? = 1 + 1
val a2: Short? = 1 + 1
+3 -1
View File
@@ -1,3 +1,5 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val a: Long = 2147483647 + 1
if (a != -2147483648L) return "fail: in this case we should add to ints and than cast the result to long - overflow expected"
@@ -11,4 +13,4 @@ fun box(): String {
if (l4 < l3) return "fail: Long.MIN_VALUE - 1 should overflow to positive."
return "OK"
}
}