35 lines
1 KiB
Text
35 lines
1 KiB
Text
=== tests/cases/conformance/es6/Symbols/symbolType9.ts ===
|
|
var s = Symbol.for("equal");
|
|
>s : Symbol(s, Decl(symbolType9.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, --, --))
|
|
|
|
s == s;
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
|
|
s == true;
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
|
|
s != s;
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
|
|
0 != s;
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
|
|
s === s;
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
|
|
s === 1;
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
|
|
s !== s;
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
|
|
false !== s;
|
|
>s : Symbol(s, Decl(symbolType9.ts, 0, 3))
|
|
|