25 lines
451 B
Plaintext
25 lines
451 B
Plaintext
=== tests/cases/conformance/es6/Symbols/symbolProperty32.ts ===
|
|
class C1 {
|
|
>C1 : C1
|
|
|
|
[Symbol.toStringTag]() {
|
|
>[Symbol.toStringTag] : () => { x: string; }
|
|
>Symbol.toStringTag : symbol
|
|
>Symbol : SymbolConstructor
|
|
>toStringTag : symbol
|
|
|
|
return { x: "" };
|
|
>{ x: "" } : { x: string; }
|
|
>x : string
|
|
>"" : ""
|
|
}
|
|
}
|
|
class C2 extends C1 {
|
|
>C2 : C2
|
|
>C1 : C1
|
|
|
|
[s: symbol]: () => { x: number };
|
|
>s : symbol
|
|
>x : number
|
|
}
|