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

9 lines
173 B
TypeScript

// @target: ES6
// @noEmitHelpers: true
declare class C { }
declare var p: Promise<typeof C>;
async function func(): Promise<void> {
class D extends (await p) {
}
}