blob: e6f3992e8504cf34d187ad4c56284a045736180d [file] [log] [blame]
// !LANGUAGE: +InlineClasses
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"
}