TypeScript/tests/baselines/reference/computedPropertyNamesDeclarationEmit5.js

22 lines
419 B
JavaScript
Raw Normal View History

//// [computedPropertyNamesDeclarationEmit5.ts]
var v = {
["" + ""]: 0,
["" + ""]() { },
get ["" + ""]() { return 0; },
set ["" + ""](x) { }
}
//// [computedPropertyNamesDeclarationEmit5.js]
var v = {
["" + ""]: 0,
["" + ""]() { },
get ["" + ""]() {
return 0;
},
set ["" + ""](x) { }
};
//// [computedPropertyNamesDeclarationEmit5.d.ts]
declare var v: {};