<How do I get the KType of Nothing?> I am doing Re...
# stackoverflow
r
How do I get the KType of Nothing? I am doing Reflection Stuff™ stuff with Kotlin, and I am trying to fill generic arguments with Nothing. However, for this I need a KType of Nothing. typeOf() doesn't work because I cannot use 'Nothing' as reified type parameter, and I do not know of an other way to get a KType of Nothing directly. Right now, I am using typeOf().arguments.first().type which gets me a KType of Nothing, but seems like a workaround. Is there another way I am missing?