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