TypeScript/tests/baselines/reference/symbolProperty45.types

20 lines
379 B
Plaintext
Raw Normal View History

=== tests/cases/conformance/es6/Symbols/symbolProperty45.ts ===
class C {
>C : C
get [Symbol.hasInstance]() {
>Symbol.hasInstance : symbol
>Symbol : SymbolConstructor
>hasInstance : symbol
return "";
}
get [Symbol.toPrimitive]() {
>Symbol.toPrimitive : symbol
>Symbol : SymbolConstructor
>toPrimitive : symbol
return "";
}
}