50 lines
1.3 KiB
Text
50 lines
1.3 KiB
Text
=== tests/cases/conformance/es6/Symbols/symbolType6.ts ===
|
|
var s = Symbol.for("add");
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
>Symbol.for : Symbol(SymbolConstructor.for, Decl(lib.es2015.symbol.d.ts, --, --))
|
|
>Symbol : Symbol(Symbol, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --))
|
|
>for : Symbol(SymbolConstructor.for, Decl(lib.es2015.symbol.d.ts, --, --))
|
|
|
|
var a: any;
|
|
>a : Symbol(a, Decl(symbolType6.ts, 1, 3))
|
|
|
|
s + s;
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
|
|
s - s;
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
|
|
s + "";
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
|
|
s + a;
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
>a : Symbol(a, Decl(symbolType6.ts, 1, 3))
|
|
|
|
s + 0;
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
|
|
"" + s;
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
|
|
a + s;
|
|
>a : Symbol(a, Decl(symbolType6.ts, 1, 3))
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
|
|
0 + s;
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
|
|
s - 0;
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
|
|
0 - s;
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
|
|
(s || "") + "";
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
|
|
"" + (s || "");
|
|
>s : Symbol(s, Decl(symbolType6.ts, 0, 3))
|
|
|