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