23 lines
636 B
TypeScript
23 lines
636 B
TypeScript
//// [symbolDeclarationEmit11.ts]
|
|
class C {
|
|
static [Symbol.iterator] = 0;
|
|
static [Symbol.isConcatSpreadable]() { }
|
|
static get [Symbol.toPrimitive]() { return ""; }
|
|
static set [Symbol.toPrimitive](x) { }
|
|
}
|
|
|
|
//// [symbolDeclarationEmit11.js]
|
|
class C {
|
|
static [Symbol.isConcatSpreadable]() { }
|
|
static get [Symbol.toPrimitive]() { return ""; }
|
|
static set [Symbol.toPrimitive](x) { }
|
|
}
|
|
C[Symbol.iterator] = 0;
|
|
|
|
|
|
//// [symbolDeclarationEmit11.d.ts]
|
|
declare class C {
|
|
static [Symbol.iterator]: number;
|
|
static [Symbol.isConcatSpreadable](): void;
|
|
static [Symbol.toPrimitive]: string;
|
|
}
|