//// [generatorTypeCheck21.ts]
class Foo { x: number }
class Bar extends Foo { y: string }
function* g(): IterableIterator<Foo> {
    yield;
    yield * new Bar;
}

//// [generatorTypeCheck21.js]
class Foo {
}
class Bar extends Foo {
}
function* g() {
    yield;
    yield* new Bar;
}
