How is an `inline class` represented in ObjC when ...
# kotlin-native
m
How is an
inline class
represented in ObjC when it's boxed to
Any
?
Copy code
let value: Any = someMap[…]
print(type(of: value)) // kobjcc3
print(value) // UiColor(argb=-570425344) - a wrapped Int (i.e. Int32 in ObjC)
as! Int32
doesn't work
as! KotlinInt
doesn't work
as! NSNumber
doesn' work In all non-generic contexts the value is represented as
Int32
. I also can't cast it to a protocol in case it implements an interface 😕