21 lines
866 B
Text
21 lines
866 B
Text
=== tests/cases/conformance/es6/for-ofStatements/for-of28.ts ===
|
|
for (var v of new StringIterator) { }
|
|
>v : any, Symbol(v, Decl(for-of28.ts, 0, 8))
|
|
>new StringIterator : StringIterator
|
|
>StringIterator : typeof StringIterator, Symbol(StringIterator, Decl(for-of28.ts, 0, 37))
|
|
|
|
class StringIterator {
|
|
>StringIterator : StringIterator, Symbol(StringIterator, Decl(for-of28.ts, 0, 37))
|
|
|
|
next: any;
|
|
>next : any, Symbol(next, Decl(for-of28.ts, 2, 22))
|
|
|
|
[Symbol.iterator]() {
|
|
>Symbol.iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
>Symbol : SymbolConstructor, Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11))
|
|
>iterator : symbol, Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
|
|
return this;
|
|
>this : StringIterator, Symbol(StringIterator, Decl(for-of28.ts, 0, 37))
|
|
}
|
|
}
|