25 lines
471 B
Plaintext
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
|
|
}
|