Bug or Feature?
Let's consider this piece of code:
val foo = ByteArray(2, { 99.toByte() })
println("is it a ByteArray? -> ${foo is ByteArray}")
... this gives false, which I would consider quite unexpected
but
println("is it an Array? -> ${foo is Array<*>}")
gives true
So, besides the fact that I can definitely understand that the special XXXArray types are not everyone's favourites, could you please comment, whether the "wrong" type is a bug or whether it is a feature that will stay in there..
Thanks!