Parse parameter decorators outside of Await context when appropriate (#50040)

This commit is contained in:
Ron Buckton
2022-07-25 17:17:27 -04:00
committed by GitHub
parent a179e910dd
commit 12dbdf03b1
6 changed files with 117 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
// @target: es2015
// @experimentaldecorators: true
// https://github.com/microsoft/TypeScript/issues/48509
declare function dec(a: any): any;
function fn(value: Promise<number>): any {
class Class {
async method(@dec(await value) arg: number) {}
}
return Class
}