8bc7370b92
instructions if possible.
23 lines
389 B
Kotlin
Vendored
23 lines
389 B
Kotlin
Vendored
inline fun <T> runAfterLoop(fn: () -> T): T {
|
|
for (i in 1..2);
|
|
return fn()
|
|
}
|
|
|
|
fun bar() : Boolean = true
|
|
|
|
fun foobar(x: Boolean, y: String, z: String) {}
|
|
|
|
inline fun foo() = runAfterLoop { "-" }
|
|
|
|
fun test() {
|
|
val result = foobar(if (1 == 1) true else bar(), foo(), "OK")
|
|
}
|
|
|
|
// 2 ASTORE
|
|
// 5 ALOAD
|
|
// 1 MAXLOCALS = 3
|
|
// 1 MAXLOCALS = 4
|
|
// 0 InlineMarker
|
|
// 14 ISTORE
|
|
// 7 ILOAD
|