TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames30_ES5.ts
2015-02-03 17:43:31 -08:00

16 lines
419 B
TypeScript

// @target: es5
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")]() { }
};
}
}
}