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