[JVM_IR] Recursively perform constant lowering.

Otherwise constants in child expressions are not transformed.

^KT-47716 Fixed.
This commit is contained in:
Mads Ager
2021-07-19 13:03:37 +02:00
committed by Alexander Udalov
parent 2877f1cabe
commit 6436a1686d
10 changed files with 56 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
// IGNORE_BACKEND: WASM
// WITH_RUNTIME
fun box(): String {
val r =
try {
ULong
} finally {
UInt.MAX_VALUE
}.MAX_VALUE
return if (r == ULong.MAX_VALUE) "OK" else "FAIL"
}