TypeScript/tests/baselines/reference/computedPropertyNames32.js
2015-02-06 18:45:09 -08:00

23 lines
394 B
JavaScript

//// [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;
};
C.prototype[foo()] = function () { };
return C;
})();