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

25 lines
471 B
Plaintext

=== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck19.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[]
>new Bar : Bar
>Bar : typeof Bar
}