mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
191 B
Kotlin
Vendored
14 lines
191 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
|
|
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 |