sounds like traits in Rust!? I enjoy figuring out the difference between those and the interfaces I'm used to Java/Kotlin (apart from the obvious fact that interface extension can only happen while the extending class itselft is written. E.g. implementing traits not for a specific struct but for other traits.)
But yeah, in regards to the original question: that doesn't work in Kotlin.