42 lines
1.8 KiB
Plaintext
42 lines
1.8 KiB
Plaintext
=== tests/cases/conformance/es6/Symbols/symbolType3.ts ===
|
|
var s = Symbol();
|
|
>s : Symbol(s, Decl(symbolType3.ts, 0, 3))
|
|
>Symbol : Symbol(Symbol, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
|
|
|
|
delete Symbol.iterator;
|
|
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es6.d.ts, --, --))
|
|
>Symbol : Symbol(Symbol, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
|
|
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.es6.d.ts, --, --))
|
|
|
|
void Symbol.toPrimitive;
|
|
>Symbol.toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.es6.d.ts, --, --))
|
|
>Symbol : Symbol(Symbol, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
|
|
>toPrimitive : Symbol(SymbolConstructor.toPrimitive, Decl(lib.es6.d.ts, --, --))
|
|
|
|
typeof Symbol.toStringTag;
|
|
>Symbol.toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es6.d.ts, --, --))
|
|
>Symbol : Symbol(Symbol, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
|
|
>toStringTag : Symbol(SymbolConstructor.toStringTag, Decl(lib.es6.d.ts, --, --))
|
|
|
|
++s;
|
|
>s : Symbol(s, Decl(symbolType3.ts, 0, 3))
|
|
|
|
--s;
|
|
>s : Symbol(s, Decl(symbolType3.ts, 0, 3))
|
|
|
|
+ Symbol();
|
|
>Symbol : Symbol(Symbol, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
|
|
|
|
- Symbol();
|
|
>Symbol : Symbol(Symbol, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
|
|
|
|
~ Symbol();
|
|
>Symbol : Symbol(Symbol, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
|
|
|
|
! Symbol();
|
|
>Symbol : Symbol(Symbol, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
|
|
|
|
+(Symbol() || 0);
|
|
>Symbol : Symbol(Symbol, Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --), Decl(lib.es6.d.ts, --, --))
|
|
|