TypeScript/tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck21.ts
2015-05-04 16:15:55 -07:00

7 lines
153 B
TypeScript

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