mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 00:21:26 +00:00
18 lines
305 B
Kotlin
Vendored
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
|