Files
kotlin/compiler/testData/codegen/bytecodeText/storeStackBeforeInline/primitiveMerge.kt
Dmitry Petrov dda508234f Drop package facades:
- update tests
- cleanup JetTyMapper after rebase
2015-10-19 16:03:22 +03:00

18 lines
305 B
Kotlin
Vendored

fun bar() : Boolean = true
fun foobar(x: Boolean, y: String, z: String) = x.toString() + y + z
inline fun foo() = "-"
fun test() {
val result = foobar(if (1 == 1) true else bar(), foo(), "OK")
}
// 1 ISTORE
// 2 ILOAD
// 2 ASTORE
// 5 ALOAD
// 1 MAXLOCALS = 3
// 1 MAXLOCALS = 4
// 0 InlineMarker