class A interface T fun foo() { object O: A(), T }