I’m getting the following compiler exception with ...
# announcements
d
I’m getting the following compiler exception with this piece of code - am I doing something wrong?
Copy code
interface Entity

class EntityClassInfo<T : Entity>(private val type: Type) {
    companion object {
        fun <T : Entity> from(type: Type): EntityClassInfo<T> = EntityClassInfo(type)
    }
}

val <T : KClass<E>, E : Entity> T.classInfo: EntityClassInfo<E>
    get() = EntityClassInfo.from(java)