Is the below intended operation be achieved in any (common) way in Kotlin?
val dataClass = String::class
if (anotherObject is dataClass) { ... }
I would want to know if it is possible to check for type casting with a variable on the RHS of the is
operator. Also any other way of doing this?
There is some concept here that I may have not understood and eventually ended up asking this question here. Please do share any info related to this.
0 Replies