open class A { open fun Int.foo(): Int { return 0 } } class B: A() { override fun Int.foo(): Int { TODO("Not yet implemented") } }