Files
kotlin/compiler/testData/codegen/bytecodeText/boxingOptimization/simple.kt
Denis Zharkov 0f5e29df9b tests added
2014-07-15 21:26:53 +04:00

12 lines
164 B
Kotlin

inline fun foo(x : Int, block : (Int) -> Int) : Int {
return block(x)
}
fun bar() {
foo(1) { x -> x + 1 }
}
// 1 java/lang/Integer.valueOf
// 1 intValue