function foo(): object { return new class() implements Foo, Bar {}; }