j

    jeggy

    2 years ago
    Is it possible to know if a type is a sealed class from a
    KType
    ? I've created a sample of what I'm trying to do: https://pl.kotl.in/zBHj3IlEi
    d

    diesieben07

    2 years ago
    val isSealed = (returnType.classifier as? KClass<*>)?.isSealed ?: false
    j

    jeggy

    2 years ago
    Thanks 🙂