TypeScript/tests/baselines/reference/parserComputedPropertyName40.js
2015-02-06 18:45:09 -08:00

13 lines
240 B
JavaScript

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