mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
16 lines
245 B
TypeScript
16 lines
245 B
TypeScript
|
// @target: es5
|
||
|
class Base {
|
||
|
bar() {
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
class C extends Base {
|
||
|
foo() {
|
||
|
() => {
|
||
|
var obj = {
|
||
|
[super.bar()]() { } // needs capture
|
||
|
};
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
}
|