40 lines
625 B
Text
40 lines
625 B
Text
=== 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
|
|
>"logical" : string
|
|
|
|
s && s;
|
|
>s && s : symbol
|
|
>s : symbol
|
|
>s : symbol
|
|
|
|
s && [];
|
|
>s && [] : undefined[]
|
|
>s : symbol
|
|
>[] : undefined[]
|
|
|
|
0 && s;
|
|
>0 && s : symbol
|
|
>0 : number
|
|
>s : symbol
|
|
|
|
s || s;
|
|
>s || s : symbol
|
|
>s : symbol
|
|
>s : symbol
|
|
|
|
s || 1;
|
|
>s || 1 : number | symbol
|
|
>s : symbol
|
|
>1 : number
|
|
|
|
({}) || s;
|
|
>({}) || s : {}
|
|
>({}) : {}
|
|
>{} : {}
|
|
>s : symbol
|
|
|