2015-03-26 01:36:47 +01:00
|
|
|
=== tests/cases/conformance/es6/destructuring/iterableArrayPattern3.ts ===
|
|
|
|
var a: Bar, b: Bar;
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : Bar, Symbol(a, Decl(iterableArrayPattern3.ts, 0, 3))
|
|
|
|
>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern3.ts, 1, 25))
|
|
|
|
>b : Bar, Symbol(b, Decl(iterableArrayPattern3.ts, 0, 11))
|
|
|
|
>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern3.ts, 1, 25))
|
2015-03-26 01:36:47 +01:00
|
|
|
|
|
|
|
[a, b] = new FooIterator;
|
|
|
|
>[a, b] = new FooIterator : FooIterator
|
|
|
|
>[a, b] : [Bar, Bar]
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : Bar, Symbol(a, Decl(iterableArrayPattern3.ts, 0, 3))
|
|
|
|
>b : Bar, Symbol(b, Decl(iterableArrayPattern3.ts, 0, 11))
|
2015-03-26 01:36:47 +01:00
|
|
|
>new FooIterator : FooIterator
|
2015-04-13 23:01:57 +02:00
|
|
|
>FooIterator : typeof FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern3.ts, 3, 27))
|
2015-03-26 01:36:47 +01:00
|
|
|
|
|
|
|
class Bar { x }
|
2015-04-13 23:01:57 +02:00
|
|
|
>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern3.ts, 1, 25))
|
|
|
|
>x : any, Symbol(x, Decl(iterableArrayPattern3.ts, 2, 11))
|
2015-03-26 01:36:47 +01:00
|
|
|
|
|
|
|
class Foo extends Bar { y }
|
2015-04-13 23:01:57 +02:00
|
|
|
>Foo : Foo, Symbol(Foo, Decl(iterableArrayPattern3.ts, 2, 15))
|
|
|
|
>Bar : Bar, Symbol(Bar, Decl(iterableArrayPattern3.ts, 1, 25))
|
|
|
|
>y : any, Symbol(y, Decl(iterableArrayPattern3.ts, 3, 23))
|
2015-03-26 01:36:47 +01:00
|
|
|
|
|
|
|
class FooIterator {
|
2015-04-13 23:01:57 +02:00
|
|
|
>FooIterator : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern3.ts, 3, 27))
|
2015-03-26 01:36:47 +01:00
|
|
|
|
|
|
|
next() {
|
2015-04-13 23:01:57 +02:00
|
|
|
>next : () => { value: Foo; done: boolean; }, Symbol(next, Decl(iterableArrayPattern3.ts, 4, 19))
|
2015-03-26 01:36:47 +01:00
|
|
|
|
|
|
|
return {
|
|
|
|
>{ value: new Foo, done: false } : { value: Foo; done: boolean; }
|
|
|
|
|
|
|
|
value: new Foo,
|
2015-04-13 23:01:57 +02:00
|
|
|
>value : Foo, Symbol(value, Decl(iterableArrayPattern3.ts, 6, 16))
|
2015-03-26 01:36:47 +01:00
|
|
|
>new Foo : Foo
|
2015-04-13 23:01:57 +02:00
|
|
|
>Foo : typeof Foo, Symbol(Foo, Decl(iterableArrayPattern3.ts, 2, 15))
|
2015-03-26 01:36:47 +01:00
|
|
|
|
|
|
|
done: false
|
2015-04-13 23:01:57 +02:00
|
|
|
>done : boolean, Symbol(done, Decl(iterableArrayPattern3.ts, 7, 27))
|
2015-04-13 21:36:11 +02:00
|
|
|
>false : boolean
|
2015-03-26 01:36:47 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
[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))
|
2015-03-26 01:36:47 +01:00
|
|
|
|
|
|
|
return this;
|
2015-04-13 23:01:57 +02:00
|
|
|
>this : FooIterator, Symbol(FooIterator, Decl(iterableArrayPattern3.ts, 3, 27))
|
2015-03-26 01:36:47 +01:00
|
|
|
}
|
|
|
|
}
|