interface A { fun foo(): Int } class B : A { override fun foo(): Int { throw UnsupportedOperationException() } }