29 lines
599 B
Text
29 lines
599 B
Text
=== tests/cases/conformance/es6/Symbols/symbolProperty6.ts ===
|
|
class C {
|
|
>C : C
|
|
|
|
[Symbol.iterator] = 0;
|
|
>Symbol.iterator : symbol
|
|
>Symbol : SymbolConstructor
|
|
>iterator : symbol
|
|
>0 : number
|
|
|
|
[Symbol.unscopables]: number;
|
|
>Symbol.unscopables : symbol
|
|
>Symbol : SymbolConstructor
|
|
>unscopables : symbol
|
|
|
|
[Symbol.toPrimitive]() { }
|
|
>Symbol.toPrimitive : symbol
|
|
>Symbol : SymbolConstructor
|
|
>toPrimitive : symbol
|
|
|
|
get [Symbol.toStringTag]() {
|
|
>Symbol.toStringTag : symbol
|
|
>Symbol : SymbolConstructor
|
|
>toStringTag : symbol
|
|
|
|
return 0;
|
|
>0 : number
|
|
}
|
|
}
|