28 lines
444 B
Plaintext
28 lines
444 B
Plaintext
=== tests/cases/conformance/es6/Symbols/symbolProperty27.ts ===
|
|
class C1 {
|
|
>C1 : C1
|
|
|
|
[Symbol.toStringTag]() {
|
|
>Symbol.toStringTag : symbol
|
|
>Symbol : SymbolConstructor
|
|
>toStringTag : symbol
|
|
|
|
return {};
|
|
>{} : {}
|
|
}
|
|
}
|
|
|
|
class C2 extends C1 {
|
|
>C2 : C2
|
|
>C1 : C1
|
|
|
|
[Symbol.toStringTag]() {
|
|
>Symbol.toStringTag : symbol
|
|
>Symbol : SymbolConstructor
|
|
>toStringTag : symbol
|
|
|
|
return "";
|
|
>"" : ""
|
|
}
|
|
}
|