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