18 lines
300 B
TypeScript
18 lines
300 B
TypeScript
//// [symbolProperty32.ts]
|
|
class C1 {
|
|
[Symbol.toStringTag]() {
|
|
return { x: "" };
|
|
}
|
|
}
|
|
class C2 extends C1 {
|
|
[s: symbol]: () => { x: number };
|
|
}
|
|
|
|
//// [symbolProperty32.js]
|
|
class C1 {
|
|
[Symbol.toStringTag]() {
|
|
return { x: "" };
|
|
}
|
|
}
|
|
class C2 extends C1 {
|
|
}
|