text: //// [generatorTypeCheck54.ts]
  class Foo { x: number }
  class Baz { z: number }
  function* g() {
      yield* [new Foo];
      yield* [new Baz];
  }
  
  //// [generatorTypeCheck54.js]
  class Foo {
  }
  class Baz {
  }
  function* g() {
      yield* [new Foo];
      yield* [new Baz];
  }
  