interface A { val foo: Int } class B(override val foo: Int) : A { }