2015-02-04 02:43:31 +01:00
|
|
|
//// [computedPropertyNames23_ES5.ts]
|
|
|
|
class C {
|
|
|
|
bar() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
[
|
|
|
|
{ [this.bar()]: 1 }[0]
|
|
|
|
]() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNames23_ES5.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
C.prototype.bar = function () {
|
|
|
|
return 0;
|
|
|
|
};
|
2015-02-21 06:53:44 +01:00
|
|
|
C.prototype[(_a = {}, _a[this.bar()] =
|
|
|
|
1,
|
|
|
|
_a)[0]] = function () { };
|
2015-02-04 02:43:31 +01:00
|
|
|
return C;
|
|
|
|
})();
|
2015-02-05 03:35:04 +01:00
|
|
|
var _a;
|