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