mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +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) { }
|
|
}
|
|
} |