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

19 lines
329 B
JavaScript

//// [computedPropertyNames21.ts]
class C {
bar() {
return 0;
}
[this.bar()]() { }
}
//// [computedPropertyNames21.js]
var C = (function () {
function C() {
}
C.prototype.bar = function () {
return 0;
};
C.prototype[this.bar()] = function () { };
return C;
})();