Hello, I used the Resolver.getKotlinClassByName ex...
# ksp
a
Hello, I used the Resolver.getKotlinClassByName extension function to retrieve the class declaration but when I tried to retrieve a nested sealed interface it's not working:
Copy code
sealed interface EntangledSealedInterface {

    sealed interface InnerInterface: EntangledSealedInterface {
        data object FirstInnerInterface: InnerInterface
        data class SecondInnerInterface(val fourthClass: FourthClass): InnerInterface
    }
}
-> com.example.EntangledSealedInterface$InnerInterface$SecondInnerInterface returns null. Is there a limitation to nested classes/interfaces or something I'm doing is wrong ?
OK this was my bad. I converted to the toTypeName from kotlinPoet then do reflectionName() on it and the output was
com.example.EntangledSealedInterface$InnerInterface$SecondInnerInterface
whereas for the
resolver.getKotlinClassByName
to work, it has to be
com.example.EntangledSealedInterface.InnerInterface.SecondInnerInterface
. I put it here in case there is a someone posting the same question