mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
22 lines
340 B
Kotlin
Vendored
22 lines
340 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline class UInt(val a: Int) {
|
|
fun test() {
|
|
takeNullable(this)
|
|
takeAnyInside(this)
|
|
|
|
takeAnyInside(this.a)
|
|
}
|
|
|
|
fun takeAnyInside(a: Any) {}
|
|
}
|
|
|
|
fun takeNullable(a: UInt?) {}
|
|
|
|
fun box(): String {
|
|
val a = UInt(0)
|
|
a.test()
|
|
|
|
return "OK"
|
|
} |