7 lines
No EOL
127 B
TypeScript
7 lines
No EOL
127 B
TypeScript
//@target: ES6
|
|
class Foo { x: number }
|
|
class Baz { z: number }
|
|
function* g() {
|
|
yield new Foo;
|
|
yield* [new Baz];
|
|
} |