How about something along the lines of golang’s im...
# language-proposals
f
How about something along the lines of golang’s implicit interfaces?
Copy code
interface SomeInterface{
    fun doAThing()
}

class DoesNotExplicitlyImplementSomeInterface{
    fun doAThing(){
        TODO()
    }
    fun doSomeOtherThings(){
        TODO()
    }
}

fun main(args: Array<String>) {
    val obj = DoesNotExplicitlyImplementSomeInterface() as SomeInterface
   
}