class FooImpl : Foo { override fun baz(foo: T) = Unit }