TypeScript/tests/baselines/reference/computedPropertyNames32_ES5.js
Cyrus Najmabadi 23e66303fa Update tests.
2015-02-21 14:43:45 -08:00

20 lines
396 B
JavaScript

//// [computedPropertyNames32_ES5.ts]
function foo<T>() { return '' }
class C<T> {
bar() {
return 0;
}
[foo<T>()]() { }
}
//// [computedPropertyNames32_ES5.js]
function foo() { return ''; }
var C = (function () {
function C() {
}
C.prototype.bar = function () {
return 0;
};
C.prototype[foo()] = function () { };
return C;
})();