Files
kotlin/compiler/testData/codegen/bytecodeText/capturedVarsOptimization/withStackNormalization.kt
2018-12-21 16:20:45 +01:00

14 lines
201 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
fun add(x: Int, y: Int) = x + y
fun test() {
var x = 0
run {
x += add(1, try { 1 } catch (e: Throwable) { 42 })
}
}
// 0 NEW
// 0 GETFIELD
// 0 PUTFIELD