21 lines
336 B
TypeScript
21 lines
336 B
TypeScript
//// [computedPropertyNames8_ES5.ts]
|
|
function f<T, U extends string>() {
|
|
var t: T;
|
|
var u: U;
|
|
var v = {
|
|
[t]: 0,
|
|
[u]: 1
|
|
};
|
|
}
|
|
|
|
//// [computedPropertyNames8_ES5.js]
|
|
function f() {
|
|
var t;
|
|
var u;
|
|
var v = (_a = {},
|
|
_a[t] = 0,
|
|
_a[u] = 1,
|
|
_a
|
|
);
|
|
var _a;
|
|
}
|