2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames29_ES6.ts]
|
2015-01-20 01:27:58 +01:00
|
|
|
class C {
|
|
|
|
bar() {
|
|
|
|
() => {
|
|
|
|
var obj = {
|
|
|
|
[this.bar()]() { } // needs capture
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames29_ES6.js]
|
2015-03-16 00:29:41 +01:00
|
|
|
class C {
|
|
|
|
bar() {
|
2015-01-27 23:27:51 +01:00
|
|
|
(() => {
|
2015-01-20 01:27:58 +01:00
|
|
|
var obj = {
|
2015-03-09 02:23:23 +01:00
|
|
|
[this.bar()]() {
|
|
|
|
} // needs capture
|
2015-01-20 01:27:58 +01:00
|
|
|
};
|
|
|
|
});
|
|
|
|
return 0;
|
2015-03-16 00:29:41 +01:00
|
|
|
}
|
|
|
|
}
|