inline fun 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 // 0 InlineMarker // JVM_TEMPLATES // 1 MAXLOCALS = 3 // 1 MAXLOCALS = 4 // 14 ISTORE // 7 ILOAD // JVM_IR_TEMPLATES // 2 MAXLOCALS = 3 // 1 MAXLOCALS = 4 // 11 ISTORE // 4 ILOAD