TypeScript/tests/baselines/reference/for-of26.types

28 lines
1,003 B
Plaintext
Raw Normal View History

=== tests/cases/conformance/es6/for-ofStatements/for-of26.ts ===
var x: any;
2015-04-13 23:01:57 +02:00
>x : any, Symbol(x, Decl(for-of26.ts, 0, 3))
for (var v of new StringIterator) { }
2015-04-13 23:01:57 +02:00
>v : any, Symbol(v, Decl(for-of26.ts, 1, 8))
>new StringIterator : StringIterator
2015-04-13 23:01:57 +02:00
>StringIterator : typeof StringIterator, Symbol(StringIterator, Decl(for-of26.ts, 1, 37))
class StringIterator {
2015-04-13 23:01:57 +02:00
>StringIterator : StringIterator, Symbol(StringIterator, Decl(for-of26.ts, 1, 37))
next() {
2015-04-13 23:01:57 +02:00
>next : () => any, Symbol(next, Decl(for-of26.ts, 3, 22))
return x;
2015-04-13 23:01:57 +02:00
>x : any, Symbol(x, Decl(for-of26.ts, 0, 3))
}
[Symbol.iterator]() {
2015-04-13 23:01:57 +02:00
>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;
2015-04-13 23:01:57 +02:00
>this : StringIterator, Symbol(StringIterator, Decl(for-of26.ts, 1, 37))
}
}