TypeScript/tests/baselines/reference/parserComputedPropertyName40.js
2014-11-26 20:10:49 -08:00

14 lines
245 B
JavaScript

//// [parserComputedPropertyName40.ts]
class C {
[a ? "" : ""]() {}
}
//// [parserComputedPropertyName40.js]
var C = (function () {
function C() {
}
C.prototype[a ? "" : ""] = function () {
};
return C;
})();