14 lines
250 B
TypeScript
14 lines
250 B
TypeScript
//// [symbolProperty29.ts]
|
|
class C1 {
|
|
[Symbol.toStringTag]() {
|
|
return { x: "" };
|
|
}
|
|
[s: symbol]: () => { x: string };
|
|
}
|
|
|
|
//// [symbolProperty29.js]
|
|
class C1 {
|
|
[Symbol.toStringTag]() {
|
|
return { x: "" };
|
|
}
|
|
}
|