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

23 lines
385 B
JavaScript

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