blob: c61bd2a1c9f47bf9d0075f5246de8e18eec82b07 [file]
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses
OPTIONAL_JVM_INLINE_ANNOTATION
value 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"
}