20 lines
434 B
Text
20 lines
434 B
Text
=== tests/cases/conformance/es6/for-ofStatements/for-of33.ts ===
|
|
class StringIterator {
|
|
>StringIterator : StringIterator
|
|
|
|
[Symbol.iterator]() {
|
|
>[Symbol.iterator] : () => any
|
|
>Symbol.iterator : symbol
|
|
>Symbol : SymbolConstructor
|
|
>iterator : symbol
|
|
|
|
return v;
|
|
>v : any
|
|
}
|
|
}
|
|
|
|
for (var v of new StringIterator) { }
|
|
>v : any
|
|
>new StringIterator : StringIterator
|
|
>StringIterator : typeof StringIterator
|
|
|