mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
259 B
Kotlin
Vendored
12 lines
259 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
fun runNoInline(f: () -> Unit) = f()
|
|
|
|
fun test() {
|
|
var x = 0
|
|
runNoInline { ++x }
|
|
}
|
|
|
|
// 1 NEW kotlin/jvm/internal/Ref\$IntRef
|
|
// 2 GETFIELD kotlin/jvm/internal/Ref\$IntRef\.element
|
|
// 2 PUTFIELD kotlin/jvm/internal/Ref\$IntRef\.element |