17 lines
360 B
TypeScript
17 lines
360 B
TypeScript
//// [symbolDeclarationEmit4.ts]
|
|
class C {
|
|
get [Symbol.toPrimitive]() { return ""; }
|
|
set [Symbol.toPrimitive](x) { }
|
|
}
|
|
|
|
//// [symbolDeclarationEmit4.js]
|
|
class C {
|
|
get [Symbol.toPrimitive]() { return ""; }
|
|
set [Symbol.toPrimitive](x) { }
|
|
}
|
|
|
|
|
|
//// [symbolDeclarationEmit4.d.ts]
|
|
declare class C {
|
|
[Symbol.toPrimitive]: string;
|
|
}
|