TypeScript/tests/baselines/reference/for-of35.types
Andy a299d2dd1c
isDeclarationName: support ComputedPropertyName (#22123)
* isDeclarationName: support ComputedPropertyName

* update additional baseline
2018-02-22 15:53:49 -08:00

37 lines
714 B
Plaintext

=== tests/cases/conformance/es6/for-ofStatements/for-of35.ts ===
class StringIterator {
>StringIterator : StringIterator
next() {
>next : () => any
return {
>{ done: true, value: v } : { done: boolean; value: any; }
done: true,
>done : boolean
>true : true
value: v
>value : any
>v : any
}
}
[Symbol.iterator]() {
>[Symbol.iterator] : () => this
>Symbol.iterator : symbol
>Symbol : SymbolConstructor
>iterator : symbol
return this;
>this : this
}
}
for (var v of new StringIterator) { }
>v : any
>new StringIterator : StringIterator
>StringIterator : typeof StringIterator