```fun getDomain(obj: Any) { when(obj) { is ...
# announcements
v
Copy code
fun getDomain(obj: Any) {
  when(obj) {
    is KrsProject -> obj.someMemberFunctionOnKrsProject()
  }
}
Why would this work? Doesn’t the type get erased?
1
r
type erasure is about generics
v
Ahh, right
Then I get it now
Thanks!