2015-02-04 02:43:31 +01:00
|
|
|
//// [computedPropertyNames34_ES5.ts]
|
|
|
|
function foo<T>() { return '' }
|
|
|
|
class C<T> {
|
|
|
|
static bar() {
|
|
|
|
var obj = {
|
|
|
|
[foo<T>()]() { }
|
|
|
|
};
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNames34_ES5.js]
|
2015-02-21 23:43:45 +01:00
|
|
|
function foo() { return ''; }
|
2015-02-04 02:43:31 +01:00
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
C.bar = function () {
|
2015-02-21 06:53:44 +01:00
|
|
|
var obj = (_a = {}, _a[foo()] = function () { },
|
|
|
|
_a);
|
2015-02-04 02:43:31 +01:00
|
|
|
return 0;
|
2015-02-05 03:35:04 +01:00
|
|
|
var _a;
|
2015-02-04 02:43:31 +01:00
|
|
|
};
|
|
|
|
return C;
|
|
|
|
})();
|