2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames31_ES6.ts]
|
2015-01-20 01:27:58 +01:00
|
|
|
class Base {
|
|
|
|
bar() {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
class C extends Base {
|
|
|
|
foo() {
|
|
|
|
() => {
|
|
|
|
var obj = {
|
|
|
|
[super.bar()]() { } // needs capture
|
|
|
|
};
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames31_ES6.js]
|
2015-03-16 00:29:41 +01:00
|
|
|
class Base {
|
|
|
|
bar() {
|
2015-01-20 01:27:58 +01:00
|
|
|
return 0;
|
|
|
|
}
|
2015-03-16 00:29:41 +01:00
|
|
|
}
|
|
|
|
class C extends Base {
|
|
|
|
foo() {
|
2015-01-27 23:27:51 +01:00
|
|
|
(() => {
|
2015-01-20 01:27:58 +01:00
|
|
|
var obj = {
|
2015-03-26 21:46:35 +01:00
|
|
|
[super.bar()]() { } // needs capture
|
2015-01-20 01:27:58 +01:00
|
|
|
};
|
|
|
|
});
|
|
|
|
return 0;
|
2015-03-16 00:29:41 +01:00
|
|
|
}
|
|
|
|
}
|