TypeScript/tests/baselines/reference/generatorTypeCheck17.types
2015-05-04 16:15:55 -07:00

24 lines
443 B
Plaintext

=== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck17.ts ===
class Foo { x: number }
>Foo : Foo
>x : number
class Bar extends Foo { y: string }
>Bar : Bar
>Foo : Foo
>y : string
function* g(): IterableIterator<Foo> {
>g : () => IterableIterator<Foo>
>IterableIterator : IterableIterator<T>
>Foo : Foo
yield;
>yield : any
yield new Bar;
>yield new Bar : any
>new Bar : Bar
>Bar : typeof Bar
}