I would like to switch on type of particular objec...
# getting-started
p
I would like to switch on type of particular object.. how can I do that in Kotlin?
Copy code
when (obj is) {
   Rectangle -> {}
   Circle -> {}
}
This does not work..