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