mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
314 B
TypeScript
15 lines
314 B
TypeScript
//// [tests/cases/conformance/async/es2017/awaitInheritedPromise_es2017.ts] ////
|
|
|
|
//// [awaitInheritedPromise_es2017.ts]
|
|
interface A extends Promise<string> {}
|
|
declare var a: A;
|
|
async function f() {
|
|
await a;
|
|
}
|
|
|
|
//// [awaitInheritedPromise_es2017.js]
|
|
"use strict";
|
|
async function f() {
|
|
await a;
|
|
}
|