17 lines
275 B
TypeScript
17 lines
275 B
TypeScript
//// [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];
|
|
}
|