2015-02-05 04:18:54 +01:00
|
|
|
=== tests/cases/conformance/es6/Symbols/symbolType11.ts ===
|
|
|
|
var s = Symbol.for("logical");
|
|
|
|
>s : symbol
|
|
|
|
>Symbol.for("logical") : symbol
|
|
|
|
>Symbol.for : (key: string) => symbol
|
|
|
|
>Symbol : SymbolConstructor
|
|
|
|
>for : (key: string) => symbol
|
|
|
|
|
|
|
|
s && s;
|
|
|
|
>s && s : symbol
|
|
|
|
>s : symbol
|
|
|
|
>s : symbol
|
|
|
|
|
|
|
|
s && [];
|
|
|
|
>s && [] : undefined[]
|
|
|
|
>s : symbol
|
|
|
|
>[] : undefined[]
|
|
|
|
|
|
|
|
0 && s;
|
|
|
|
>0 && s : symbol
|
|
|
|
>s : symbol
|
|
|
|
|
|
|
|
s || s;
|
|
|
|
>s || s : symbol
|
|
|
|
>s : symbol
|
|
|
|
>s : symbol
|
|
|
|
|
|
|
|
s || 1;
|
|
|
|
>s || 1 : number | symbol
|
|
|
|
>s : symbol
|
|
|
|
|
|
|
|
({}) || s;
|
2015-02-05 21:21:25 +01:00
|
|
|
>({}) || s : {}
|
2015-02-05 04:18:54 +01:00
|
|
|
>({}) : {}
|
|
|
|
>{} : {}
|
|
|
|
>s : symbol
|
|
|
|
|