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

25 lines
452 B
JavaScript

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