TypeScript/tests/cases/conformance/es6/computedProperties/computedPropertyNames30_ES5.ts

16 lines
419 B
TypeScript
Raw Normal View History

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