Skip to content

Commit 500b034

Browse files
committed
JS: Add test for missing contextual type in async function
1 parent a1731cc commit 500b034

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

javascript/ql/test/library-tests/UnderlyingTypes/contextualTypes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ function t4(): Options[] {
3535
}
3636
]
3737
}
38+
39+
async function t5(): Promise<Options> {
40+
return {
41+
handle(req) { // $ MISSING: hasUnderlyingType='express'.Request
42+
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)