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

14 lines
346 B
TypeScript

//@target: ES6
//@declaration: true
module M {
interface I { }
export class C {
[Symbol.iterator]: I;
[Symbol.toPrimitive](x: I) { }
[Symbol.isConcatSpreadable](): I {
return undefined
}
get [Symbol.toPrimitive]() { return undefined; }
set [Symbol.toPrimitive](x: I) { }
}
}