Files
kotlin/compiler/testData/codegen/bytecodeText/capturedVarsOptimization/capturedInInlineOnly.kt
2020-02-14 14:07:03 +03:00

12 lines
170 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// TODO KT-36648 Captured variables not optimized in JVM_IR
fun test() {
var x = 0
run { ++x }
}
// 0 NEW
// 0 GETFIELD
// 0 PUTFIELD