17 lines
267 B
JavaScript
17 lines
267 B
JavaScript
//// [symbolProperty25.ts]
|
|
interface I {
|
|
[Symbol.toPrimitive]: () => boolean;
|
|
}
|
|
|
|
class C implements I {
|
|
[Symbol.toStringTag]() {
|
|
return "";
|
|
}
|
|
}
|
|
|
|
//// [symbolProperty25.js]
|
|
class C {
|
|
[Symbol.toStringTag]() {
|
|
return "";
|
|
}
|
|
}
|