Conflicts: src/compiler/emitter.ts tests/baselines/reference/FunctionPropertyAssignments5_es6.js tests/baselines/reference/computedPropertyNames9_ES6.js tests/baselines/reference/computedPropertyNamesDeclarationEmit3.js tests/baselines/reference/computedPropertyNamesDeclarationEmit4.js tests/baselines/reference/parserES5ComputedPropertyName3.js tests/baselines/reference/parserES5ComputedPropertyName4.js
26 lines
455 B
JavaScript
26 lines
455 B
JavaScript
//// [computedPropertyNames34_ES6.ts]
|
|
function foo<T>() { return '' }
|
|
class C<T> {
|
|
static bar() {
|
|
var obj = {
|
|
[foo<T>()]() { }
|
|
};
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
//// [computedPropertyNames34_ES6.js]
|
|
function foo() {
|
|
return '';
|
|
}
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
C.bar = function () {
|
|
var obj = {
|
|
[foo()]() { }
|
|
};
|
|
return 0;
|
|
};
|
|
return C;
|
|
})();
|