swc/crates/swc_ecma_parser/tests/tsc/superMethodCall.ts

15 lines
217 B
TypeScript

// @strict: true
// @target: ES6
class Base {
method?() { }
}
class Derived extends Base {
method() {
return super.method?.();
}
async asyncMethod() {
return super.method?.();
}
}