mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fix await for inherited promise
This commit is contained in:
1 parent
b0bbbcbe07
commit
8dcbea9675
5 files changed
+50
-1
No files matched your search
@@ -0,0 +1,7 @@
|
||||
// @target: es2017
|
||||
// @strictNullChecks: true
|
||||
interface A extends Promise<string> {}
|
||||
declare var a: A;
|
||||
async function f() {
|
||||
await a;
|
||||
}
|
||||
Reference in new issue
Block a user