[FIR] Add backing fields to const properties during Fir2Ir translation

This commit is contained in:
Juan Chen
2020-04-06 10:22:54 +03:00
committed by Mikhail Glukhikh
parent 08ca6f5f99
commit 882e6931d6
85 changed files with 44 additions and 104 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val c1: Char = Char.MIN_VALUE
val c2 = c1 - 1
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
fun box(): String {
val i1: Int = Int.MAX_VALUE
val i2 = i1 + 1
@@ -1,4 +1,3 @@
// 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"