swc/crates/swc_ecma_parser/tests/tsc/symbolProperty24.ts

10 lines
151 B
TypeScript

//@target: ES6
interface I {
[Symbol.toPrimitive]: () => boolean;
}
class C implements I {
[Symbol.toPrimitive]() {
return "";
}
}