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