mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
21 lines
366 B
Kotlin
Vendored
21 lines
366 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
// FILE: utils.kt
|
|
|
|
inline class UInt(val u: Int)
|
|
|
|
fun <T> takeVarargs(vararg e: T) {}
|
|
|
|
// FILE: test.kt
|
|
|
|
fun test(u1: UInt, u2: UInt, u3: UInt?) {
|
|
takeVarargs(u1, u2) // 2 box
|
|
takeVarargs(u3)
|
|
takeVarargs(u1, u3) // box
|
|
}
|
|
|
|
// @TestKt.class:
|
|
// 3 INVOKESTATIC UInt\.box
|
|
// 0 INVOKEVIRTUAL UInt.unbox
|
|
// 0 valueOf
|
|
// 0 intValue |