2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames34_ES6.ts]
|
2015-01-20 03:44:15 +01:00
|
|
|
function foo<T>() { return '' }
|
|
|
|
class C<T> {
|
|
|
|
static bar() {
|
|
|
|
var obj = {
|
|
|
|
[foo<T>()]() { }
|
|
|
|
};
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames34_ES6.js]
|
2015-03-09 02:23:23 +01:00
|
|
|
function foo() {
|
|
|
|
return '';
|
|
|
|
}
|
2015-03-16 00:29:41 +01:00
|
|
|
class C {
|
|
|
|
static bar() {
|
2015-01-20 03:44:15 +01:00
|
|
|
var obj = {
|
2015-03-09 02:23:23 +01:00
|
|
|
[foo()]() {
|
|
|
|
}
|
2015-01-20 03:44:15 +01:00
|
|
|
};
|
|
|
|
return 0;
|
2015-03-16 00:29:41 +01:00
|
|
|
}
|
|
|
|
}
|