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