2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames30_ES6.ts]
|
2015-01-20 01:27:58 +01:00
|
|
|
class Base {
|
|
|
|
}
|
|
|
|
class C extends Base {
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
() => {
|
|
|
|
var obj = {
|
|
|
|
// Ideally, we would capture this. But the reference is
|
|
|
|
// illegal, and not capturing this is consistent with
|
|
|
|
//treatment of other similar violations.
|
|
|
|
[(super(), "prop")]() { }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames30_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() {
|
|
|
|
}
|
|
|
|
return Base;
|
|
|
|
})();
|
|
|
|
var C = (function (_super) {
|
|
|
|
__extends(C, _super);
|
|
|
|
function C() {
|
|
|
|
_super.call(this);
|
2015-01-27 23:27:51 +01:00
|
|
|
(() => {
|
2015-01-20 01:27:58 +01:00
|
|
|
var obj = {
|
|
|
|
// Ideally, we would capture this. But the reference is
|
|
|
|
// illegal, and not capturing this is consistent with
|
|
|
|
//treatment of other similar violations.
|
2015-02-07 03:45:09 +01:00
|
|
|
[(_super.call(this), "prop")]() { }
|
2015-01-20 01:27:58 +01:00
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
return C;
|
|
|
|
})(Base);
|