21 lines
698 B
Text
21 lines
698 B
Text
|
=== tests/cases/conformance/es6/for-ofStatements/for-of25.ts ===
|
||
|
var x: any;
|
||
|
>x : Symbol(x, Decl(for-of25.ts, 0, 3))
|
||
|
|
||
|
for (var v of new StringIterator) { }
|
||
|
>v : Symbol(v, Decl(for-of25.ts, 1, 8))
|
||
|
>StringIterator : Symbol(StringIterator, Decl(for-of25.ts, 1, 37))
|
||
|
|
||
|
class StringIterator {
|
||
|
>StringIterator : Symbol(StringIterator, Decl(for-of25.ts, 1, 37))
|
||
|
|
||
|
[Symbol.iterator]() {
|
||
|
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
||
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1262, 11))
|
||
|
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
||
|
|
||
|
return x;
|
||
|
>x : Symbol(x, Decl(for-of25.ts, 0, 3))
|
||
|
}
|
||
|
}
|