TypeScript/tests/baselines/reference/for-of26.types
2017-02-24 17:48:06 -08:00

29 lines
505 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 : 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