mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
17 lines
319 B
Kotlin
Vendored
17 lines
319 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline class UInt(val u: Int)
|
|
|
|
fun <T> takeVarargs(vararg e: T) {}
|
|
|
|
fun test(u1: UInt, u2: UInt, u3: UInt?) {
|
|
takeVarargs(u1, u2) // 2 box
|
|
takeVarargs(u3)
|
|
takeVarargs(u1, u3) // box
|
|
}
|
|
|
|
// 3 INVOKESTATIC UInt\$Erased.box
|
|
// 0 INVOKEVIRTUAL UInt.unbox
|
|
|
|
// 0 valueOf
|
|
// 0 intValue |