package test interface A { fun foo(): T } open class B : A { override final fun foo(): Int = 42 }