mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
16 lines
404 B
TypeScript
16 lines
404 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")]() { }
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|