TypeScript/tests/baselines/reference/symbolType4.types

18 lines
336 B
Text
Raw Normal View History

=== tests/cases/conformance/es6/Symbols/symbolType4.ts ===
var s = Symbol.for("postfix");
>s : symbol
>Symbol.for("postfix") : symbol
>Symbol.for : (key: string) => symbol
>Symbol : SymbolConstructor
>for : (key: string) => symbol
>"postfix" : "postfix"
s++;
>s++ : number
>s : symbol
s--;
>s-- : number
>s : symbol