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

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

30 lines
538 B
Plaintext

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