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