2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames24_ES6.ts]
|
2015-01-20 01:27:58 +01:00
|
|
|
class Base {
|
|
|
|
bar() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class C extends Base {
|
|
|
|
// Gets emitted as super, not _super, which is consistent with
|
|
|
|
// use of super in static properties initializers.
|
|
|
|
[super.bar()]() { }
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames24_ES6.js]
|
2015-01-20 01:27:58 +01:00
|
|
|
var __extends = this.__extends || function (d, b) {
|
|
|
|
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
|
|
function __() { this.constructor = d; }
|
|
|
|
__.prototype = b.prototype;
|
|
|
|
d.prototype = new __();
|
|
|
|
};
|
|
|
|
var Base = (function () {
|
|
|
|
function Base() {
|
|
|
|
}
|
|
|
|
Base.prototype.bar = function () {
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
return Base;
|
|
|
|
})();
|
|
|
|
var C = (function (_super) {
|
|
|
|
__extends(C, _super);
|
|
|
|
function C() {
|
|
|
|
_super.apply(this, arguments);
|
|
|
|
}
|
|
|
|
// Gets emitted as super, not _super, which is consistent with
|
|
|
|
// use of super in static properties initializers.
|
2015-02-07 03:45:09 +01:00
|
|
|
C.prototype[super.bar.call(this)] = function () { };
|
2015-01-20 01:27:58 +01:00
|
|
|
return C;
|
|
|
|
})(Base);
|