mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
18 lines
416 B
TypeScript
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(); |