mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
26 lines
374 B
Kotlin
Vendored
26 lines
374 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND: JVM_IR
|
|
|
|
// 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 |