15 lines
297 B
Plaintext
15 lines
297 B
Plaintext
=== tests/cases/conformance/es6/yieldExpressions/generatorTypeCheck41.ts ===
|
|
function* g() {
|
|
>g : () => IterableIterator<0>
|
|
|
|
let x = {
|
|
>x : { [x: number]: number; }
|
|
>{ [yield 0]: 0 } : { [x: number]: number; }
|
|
|
|
[yield 0]: 0
|
|
>yield 0 : any
|
|
>0 : 0
|
|
>0 : 0
|
|
}
|
|
}
|