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

18 lines
416 B
TypeScript

// @target: ES5
// @lib: es5,es2015.promise
// @noEmitHelpers: true
// https://github.com/Microsoft/TypeScript/issues/20744
class A {
static B = class B {
static func2(): Promise<void> {
return new Promise((resolve) => { resolve(null); });
}
static C = class C {
static async func() {
await B.func2();
}
}
}
}
A.B.C.func();