package a interface A { fun foo(): T } open class C: A { override fun foo(): Int = 42 }