2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames30_ES6.ts]
|
2015-01-20 01:27:58 +01:00
|
|
|
class Base {
|
|
|
|
}
|
|
|
|
class C extends Base {
|
|
|
|
constructor() {
|
|
|
|
super();
|
|
|
|
() => {
|
|
|
|
var obj = {
|
|
|
|
// Ideally, we would capture this. But the reference is
|
|
|
|
// illegal, and not capturing this is consistent with
|
|
|
|
//treatment of other similar violations.
|
|
|
|
[(super(), "prop")]() { }
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-02-03 02:36:45 +01:00
|
|
|
//// [computedPropertyNames30_ES6.js]
|
2015-03-16 00:29:41 +01:00
|
|
|
class Base {
|
|
|
|
}
|
|
|
|
class C extends Base {
|
|
|
|
constructor() {
|
|
|
|
super();
|
2015-01-27 23:27:51 +01:00
|
|
|
(() => {
|
2015-01-20 01:27:58 +01:00
|
|
|
var obj = {
|
|
|
|
// Ideally, we would capture this. But the reference is
|
|
|
|
// illegal, and not capturing this is consistent with
|
|
|
|
//treatment of other similar violations.
|
2015-03-26 21:46:35 +01:00
|
|
|
[(super(), "prop")]() { }
|
2015-01-20 01:27:58 +01:00
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
2015-03-16 00:29:41 +01:00
|
|
|
}
|