//@target: ES6 class Foo { x: number } class Bar extends Foo { y: string } function* g(): IterableIterator { yield; yield * [new Bar]; }