2015-02-07 05:49:58 +01:00
|
|
|
=== tests/cases/conformance/es6/Symbols/symbolDeclarationEmit4.ts ===
|
|
|
|
class C {
|
|
|
|
>C : C
|
|
|
|
|
2015-04-09 23:28:29 +02:00
|
|
|
get [Symbol.toPrimitive]() { return ""; }
|
|
|
|
>Symbol.toPrimitive : symbol
|
2015-02-07 05:49:58 +01:00
|
|
|
>Symbol : SymbolConstructor
|
2015-04-09 23:28:29 +02:00
|
|
|
>toPrimitive : symbol
|
2015-02-07 05:49:58 +01:00
|
|
|
|
2015-04-09 23:28:29 +02:00
|
|
|
set [Symbol.toPrimitive](x) { }
|
|
|
|
>Symbol.toPrimitive : symbol
|
2015-02-07 05:49:58 +01:00
|
|
|
>Symbol : SymbolConstructor
|
2015-04-09 23:28:29 +02:00
|
|
|
>toPrimitive : symbol
|
2015-02-07 05:49:58 +01:00
|
|
|
>x : string
|
|
|
|
}
|