* Move iterabl related stuffs off from es2015.collection * Move symbol.wellknown stuffs off from es2015.collection * Add map & set constructor support when targeting ES5 * Address PR: move symbol.iterator to es2015.iterable * Move Symbol.Iterator into es2015.iterable * Update baselines
27 lines
1,004 B
Text
27 lines
1,004 B
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty11.ts ===
|
|
class C { }
|
|
>C : Symbol(C, Decl(symbolProperty11.ts, 0, 0))
|
|
|
|
interface I {
|
|
>I : Symbol(I, Decl(symbolProperty11.ts, 0, 11))
|
|
|
|
[Symbol.iterator]?: { x };
|
|
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --))
|
|
>Symbol : Symbol(Symbol, Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --))
|
|
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es2015.iterable.d.ts, --, --))
|
|
>x : Symbol(x, Decl(symbolProperty11.ts, 2, 25))
|
|
}
|
|
|
|
var i: I;
|
|
>i : Symbol(i, Decl(symbolProperty11.ts, 5, 3))
|
|
>I : Symbol(I, Decl(symbolProperty11.ts, 0, 11))
|
|
|
|
i = new C;
|
|
>i : Symbol(i, Decl(symbolProperty11.ts, 5, 3))
|
|
>C : Symbol(C, Decl(symbolProperty11.ts, 0, 0))
|
|
|
|
var c: C = i;
|
|
>c : Symbol(c, Decl(symbolProperty11.ts, 7, 3))
|
|
>C : Symbol(C, Decl(symbolProperty11.ts, 0, 0))
|
|
>i : Symbol(i, Decl(symbolProperty11.ts, 5, 3))
|
|
|