16 lines
370 B
Text
16 lines
370 B
Text
=== tests/cases/conformance/es6/Symbols/symbolDeclarationEmit13.ts ===
|
|
class C {
|
|
>C : C
|
|
|
|
get [Symbol.toPrimitive]() { return ""; }
|
|
>Symbol.toPrimitive : symbol
|
|
>Symbol : SymbolConstructor
|
|
>toPrimitive : symbol
|
|
>"" : string
|
|
|
|
set [Symbol.toStringTag](x) { }
|
|
>Symbol.toStringTag : symbol
|
|
>Symbol : SymbolConstructor
|
|
>toStringTag : symbol
|
|
>x : any
|
|
}
|