mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
19 lines
220 B
Kotlin
Vendored
19 lines
220 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
// FILE: uint.kt
|
|
|
|
package kotlin
|
|
|
|
inline class UInt(val value: Int)
|
|
|
|
// FILE: test.kt
|
|
|
|
const val u = UInt(14)
|
|
|
|
fun foo() {
|
|
u
|
|
if (u.value != 14) {}
|
|
}
|
|
|
|
// @TestKt.class:
|
|
// 0 GETSTATIC |