Files
tsgo/testdata/tests/cases/compiler/asyncSuperDefaultParameters.ts
bef45822f5 Fix downlevel async super in default parameters (#4104)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-06-02 20:14:31 +00:00

20 lines
253 B
TypeScript

// @target: es2015
// @noTypesAndSymbols: true
class B {
m() {
return 1;
}
}
class C extends B {
f() {
const g = async (b = super.m()) => b;
return g();
}
async h(b = super.m()) {
return b;
}
}