if I call this `data<Byte>(layer, face, leve...
# getting-started
e
if I call this
data<Byte>(layer, face, level)[imageOffset] = texel
, where
Copy code
inline fun <reified T> data(layer: Int, face: Int, level: Int) = when (T::class) {
        Vec4b::class -> vec4bData.apply { data = data(layer, face, level) }
        java.lang.Byte::class -> byteData.apply { data = data(layer, face, level) }
        else -> throw Error()
    }
Everything fine, but if I substitute
java.lang.Byte::class
with
Byte::class
, it throw the error, that is the case isnt chose... why?