Files
tsgo/testdata/baselines/reference/submodule/conformance/computedPropertyNamesDeclarationEmit5_ES6.js

25 lines
564 B
TypeScript

//// [tests/cases/conformance/es6/computedProperties/computedPropertyNamesDeclarationEmit5_ES6.ts] ////
//// [computedPropertyNamesDeclarationEmit5_ES6.ts]
var v = {
["" + ""]: 0,
["" + ""]() { },
get ["" + ""]() { return 0; },
set ["" + ""](x) { }
}
//// [computedPropertyNamesDeclarationEmit5_ES6.js]
"use strict";
var v = {
["" + ""]: 0,
["" + ""]() { },
get ["" + ""]() { return 0; },
set ["" + ""](x) { }
};
//// [computedPropertyNamesDeclarationEmit5_ES6.d.ts]
declare var v: {
[x: string]: any;
};