mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Parse parameter decorators outside of Await context when appropriate (#50040)
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user