21 lines
382 B
TypeScript
21 lines
382 B
TypeScript
//// [computedPropertyNames34_ES6.ts]
|
|
function foo<T>() { return '' }
|
|
class C<T> {
|
|
static bar() {
|
|
var obj = {
|
|
[foo<T>()]() { }
|
|
};
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
//// [computedPropertyNames34_ES6.js]
|
|
function foo() { return ''; }
|
|
class C {
|
|
static bar() {
|
|
var obj = {
|
|
[foo()]() { }
|
|
};
|
|
return 0;
|
|
}
|
|
}
|