17 lines
392 B
Plaintext
17 lines
392 B
Plaintext
=== tests/cases/conformance/es6/for-ofStatements/for-of27.ts ===
|
|
class StringIterator {
|
|
>StringIterator : StringIterator
|
|
|
|
[Symbol.iterator]: any;
|
|
>[Symbol.iterator] : any
|
|
>Symbol.iterator : symbol
|
|
>Symbol : SymbolConstructor
|
|
>iterator : symbol
|
|
}
|
|
|
|
for (var v of new StringIterator) { }
|
|
>v : any
|
|
>new StringIterator : StringIterator
|
|
>StringIterator : typeof StringIterator
|
|
|