2015-01-20 03:44:15 +01:00
|
|
|
//// [computedPropertyNames32.ts]
|
|
|
|
function foo<T>() { return '' }
|
|
|
|
class C<T> {
|
|
|
|
bar() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
[foo<T>()]() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNames32.js]
|
|
|
|
function foo() {
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
C.prototype.bar = function () {
|
|
|
|
return 0;
|
|
|
|
};
|
2015-02-07 03:45:09 +01:00
|
|
|
C.prototype[foo()] = function () { };
|
2015-01-20 03:44:15 +01:00
|
|
|
return C;
|
|
|
|
})();
|