mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
15 lines
217 B
TypeScript
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?.();
|
||
|
}
|
||
|
}
|