jeggy
01/07/2021, 3:56 PMT
and I know T
is a Sealed Class
.diesieben07
01/07/2021, 4:46 PMKType
represents more than a class, it represents a class and its type arguments (List
is a class, List<String>
or List<out T>
is a KType). If you want a KType you can use KClass.createType
(https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect.full/create-type.html). This requires you to specify the type arguments.