Files
kotlin/compiler/testData/codegen/bytecodeText/inlineClasses/boxUnboxInsideLambdaAsLastExpression.kt
2018-09-05 12:20:57 +03:00

25 lines
348 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// FILE: utils.kt
inline class UInt(private val u: Int)
// FILE: test.kt
fun test(x: UInt?, y: UInt) {
val a = run {
x!!
}
val b = run {
y
}
}
// @TestKt.class:
// 0 INVOKESTATIC UInt\$Erased.box
// 0 INVOKESTATIC UInt\.box
// 1 INVOKEVIRTUAL UInt.unbox
// 0 valueOf
// 0 intValue