mirror of
https://github.com/swc-project/swc.git
synced 2024-12-27 15:42:51 +03:00
14 lines
346 B
TypeScript
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) { }
|
|
}
|
|
} |